MD History: Trim long item titles to reduce effect on performance
History items with extremely long titles are very slow to render, due to needing to layout the entire title in order to determine where to cut it off with ellipses. This greatly degrades the performance of MD History in a profile which has visited several of these items. This CL trims titles down to at most 300 characters before they are rendered, which has no visible effect, but greatly improves performance. On a profile that has visited crashsafari[dot]com, load time is reduced from ~5000ms to ~1800ms on my Z620. Scrolling performance is also greatly improved. BUG=621347 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2112803002 Cr-Commit-Position: refs/heads/master@{#403351}
Showing
Please register or sign in to comment