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
..