You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
PATCH: a fix of the speed of /text, with no change of the API. In 0.2.20, each call of layoutText made a new Intl.Segmenter. A consumer port saw its first load take 2 to 3 times longer.
The module makes only one Intl.Segmenter for each granularity.
A bounded memo keeps the words of the last 4096 texts. A page often asks for the same labels many times.
A test counts the segmenters of 500 layouts. The count is 2 or fewer.