Bug 1423593 - Part 7: Cache internal segmenters and break iterators. r=dminor
commitc2370ffd2326e3aa4d3623a5f267526c9ff8c415
authorAndré Bargull <andre.bargull@gmail.com>
Tue, 12 Dec 2023 16:40:11 +0000 (12 16:40 +0000)
committerAndré Bargull <andre.bargull@gmail.com>
Tue, 12 Dec 2023 16:40:11 +0000 (12 16:40 +0000)
treefa0603a99c74da7dfd048864a28ac4b6c4a6a82f
parent34e6463e4fbe5a310fa221edded5d617f5d71c99
Bug 1423593 - Part 7: Cache internal segmenters and break iterators. r=dminor

Recreating the ICU4X segmenters and break iterators is too slow when compared
to other engines, so we have to cache the ICU4X object for better performance.

Differential Revision: https://phabricator.services.mozilla.com/D195803
js/src/builtin/SelfHostingDefines.h
js/src/builtin/intl/Segmenter.cpp
js/src/builtin/intl/Segmenter.h