DescriptionOptimize some code in RenderTextHarfbuzz.
This was showing up in the UMA callstacks profiler as taking
significant time on start up. Turns out, creating and Init'ing
the BreakIterator does some icu initialization which is expensive,
e.g. ~50ms at the mean from dev UMA users.
However, we only ever need the BreakIterator if there's a grapheme
run of over 2 characters - which might be uncommon for many users.
So this change makes that initialization lazy - only done when we
actually need it.
BUG=651848
Committed: https://crrev.com/49cf5df2724445f3160b4fdf13a187295abe14fb
Cr-Commit-Position: refs/heads/master@{#422564}
Patch Set 1 : . #
Total comments: 6
Patch Set 2 : Nits & git cl format #
Messages
Total messages: 20 (13 generated)
|