forked from mirrors/gecko-dev
When running wikipedia's page by browsertime benchmark, 0.5%-1% calls of `LineBreaker::ComputeBreakPositions` is that aLength is 1. If this is 1, we only set SOT break in ICU4X's line segmenter. So we can add a fast-path for this situation. `ICU4XLineBreakIterator*` always allocate rust heap, so we can reduce a few heap allocation costs. Differential Revision: https://phabricator.services.mozilla.com/D195523 |
||
|---|---|---|
| .. | ||
| crashtests | ||
| gtest | ||
| tools | ||
| jisx4051class.h | ||
| jisx4051pairtable.txt | ||
| LineBreaker.cpp | ||
| LineBreaker.h | ||
| moz.build | ||
| nsCarbonBreaker.cpp | ||
| nsComplexBreaker.cpp | ||
| nsComplexBreaker.h | ||
| nsLWBrkCIID.h | ||
| nsPangoBreaker.cpp | ||
| nsRuleBreaker.cpp | ||
| nsUniscribeBreaker.cpp | ||
| rulebrk.c | ||
| rulebrk.h | ||
| Segmenter.cpp | ||
| Segmenter.h | ||
| th_char.h | ||
| WordBreaker.cpp | ||
| WordBreaker.h | ||