Skip to content

v0.2.21

Choose a tag to compare

@github-actions github-actions released this 29 Oct 14:13
ddd67f0
  • 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.