Loading large plain text files off disk is very slow |
||||
Issue descriptionIt takes over 30 seconds by my watch to load file:///usr/share/dict/words, which is under 2.5MB over 235k lines.
,
Aug 15
+eae, +behdad for "HB slow on Mac" issues
,
Aug 15
The trace shows >90% of CPU time is spent within blink::CachingWordShaper::Width.
,
Aug 15
This is due to a combination of two things: 1) AAT text rendering is really slow as we don't have native support for it and fall back on CoreText. Switching to a non-AAT font will likely speed things up by an order of magnitude. 2) 2.5MB of unique words is pretty much the worse case scenario for the current text layout implementation as it relies heavily on caching where each "word" (space separated substrings) are cached. LayoutNG performs significantly better for this kind of use case and large-text-file performance is one of the metrics we're tracking.
,
Aug 15
Can we switch the default font for text/plain to something that is not AAT?
,
Aug 15
We could but that's a UX decision.
,
Aug 15
|
||||
►
Sign in to add a comment |
||||
Comment 1 by ellyjo...@chromium.org
, Aug 15Components: Blink
Labels: -Pri-3 Target-71 M-71 Pri-1
Owner: ccameron@chromium.org
5.5 MB
5.5 MB Download