cometkim / unicode-segmenter

A lightweight and fast, pure JavaScript library for Unicode segmentation
MIT License
37 stars 0 forks source link

Add benchmark comparison vs @formatjs/intl-segmenter #41

Closed cheeaun closed 1 month ago

cheeaun commented 1 month ago

Would be curious to know the comparison with @formatjs/intl-segmenter — for context, I'm currently using this as a polyfill if Intl.Segmenter is not supported.

cometkim commented 1 month ago

@cheeaun updated results :)

It looks @formatjs/intl-segmenter would be nice option in general. But if you only want grapheme it might be too heavy.

cheeaun commented 1 month ago

@cometkim thanks! This is very helpful 🙇‍♂️