DescriptionMD 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
Committed: https://crrev.com/24e3e3772122abf6a01683c9b412256228428fd7
Cr-Commit-Position: refs/heads/master@{#403351}
Patch Set 1 #Patch Set 2 : Add test #
Messages
Total messages: 11 (5 generated)
|