gecko-dev/intl/lwbrk
Makoto Kato 9f41fa963a Bug 1865865 - Add fast-path when computing segment's length is 1. r=TYLin
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
2023-12-07 14:52:46 +00:00
..
crashtests
gtest Bug 1719537 - Add LineBreaker API benchmarks with legacy / new segmenter. r=TYLin 2023-11-04 04:46:52 +00:00
tools Bug 1826063 - Automatic fixes for enabling Prettier on production xhtml and html files. r=mossop,webdriver-reviewers,webcompat-reviewers,geckoview-reviewers,extension-reviewers,settings-reviewers,application-update-reviewers,credential-management-reviewers,fxview-reviewers,sgalich,nalexander,devtools-reviewers,sclements,denschub,robwu,owlish 2023-05-20 12:26:56 +00:00
jisx4051class.h
jisx4051pairtable.txt
LineBreaker.cpp Bug 1865865 - Add fast-path when computing segment's length is 1. r=TYLin 2023-12-07 14:52:46 +00:00
LineBreaker.h
moz.build Bug 1854031 - Part 7. Gecko changes for ICU4X 1.4. r=TYLin 2023-12-04 09:02:40 +00:00
nsCarbonBreaker.cpp
nsComplexBreaker.cpp
nsComplexBreaker.h
nsLWBrkCIID.h
nsPangoBreaker.cpp
nsRuleBreaker.cpp
nsUniscribeBreaker.cpp
rulebrk.c
rulebrk.h
Segmenter.cpp Bug 1858068 - Cache ICU4XGraphemeClusterSegmenter. r=TYLin 2023-10-13 12:49:08 +00:00
Segmenter.h Bug 1858068 - Cache ICU4XGraphemeClusterSegmenter. r=TYLin 2023-10-13 12:49:08 +00:00
th_char.h
WordBreaker.cpp Bug 1848282 - Part 2. FindWord adds an option whether segment is punctuation. r=TYLin 2023-10-03 10:43:17 +00:00
WordBreaker.h Bug 1848282 - Part 2. FindWord adds an option whether segment is punctuation. r=TYLin 2023-10-03 10:43:17 +00:00