gecko-dev/intl/lwbrk
Jan-Niklas Jaeschke 062cfc14f2 Bug 1928931: Speed up nsFind by reusing the word segmenter. r=emilio
Turns out that `nsFind::BreakInBetween()` is called a lot,
especially for large documents.
If `nsFind::Find()` is then called in a loop (e.g. for creating a text directive),
the alloc cost for the word segmenter shows up in profiles.
This can be avoided by having the segmenter be a member of `nsFind`.

Differential Revision: https://phabricator.services.mozilla.com/D227804
2024-11-04 12:44:49 +00:00
..
crashtests
gtest
tools
jisx4051class.h
jisx4051pairtable.txt
LineBreakCache.cpp Bug 1921477 - patch 1 - Convert the line-break cache in ComplexBreaker from a pair of hashtables to MruCache, and expose as its own class. r=layout-reviewers,emilio 2024-10-16 14:47:49 +00:00
LineBreakCache.h Bug 1926569 - Try to avoid caching line-break results unless we're likely to be hitting the slow LSTM segmenter codepath. r=layout-reviewers,emilio 2024-10-23 21:09:18 +00:00
LineBreaker.cpp Bug 1927706 - Part 10: Add new line break classes. r=platform-i18n-reviewers,gregtatum 2024-10-31 10:26:30 +00:00
LineBreaker.h
moz.build Bug 1921477 - patch 1 - Convert the line-break cache in ComplexBreaker from a pair of hashtables to MruCache, and expose as its own class. r=layout-reviewers,emilio 2024-10-16 14:47:49 +00:00
nsCarbonBreaker.cpp
nsComplexBreaker.cpp Bug 1926569 - Try to avoid caching line-break results unless we're likely to be hitting the slow LSTM segmenter codepath. r=layout-reviewers,emilio 2024-10-23 21:09:18 +00:00
nsComplexBreaker.h
nsLWBrkCIID.h
nsPangoBreaker.cpp
nsRuleBreaker.cpp
nsUniscribeBreaker.cpp
rulebrk.c
rulebrk.h
Segmenter.cpp Bug 1928931: Speed up nsFind by reusing the word segmenter. r=emilio 2024-11-04 12:44:49 +00:00
Segmenter.h Bug 1928931: Speed up nsFind by reusing the word segmenter. r=emilio 2024-11-04 12:44:49 +00:00
th_char.h
WordBreaker.cpp Bug 1926569 - Try to avoid caching line-break results unless we're likely to be hitting the slow LSTM segmenter codepath. r=layout-reviewers,emilio 2024-10-23 21:09:18 +00:00
WordBreaker.h