4 ms·
>Splitting strings to graphemes is actually quite slow, so you can't do it too often during word wrap, or you'll tank performance. If you're splitting strings
by dhosek 4y ago
>Splitting strings to graphemes is actually quite slow, so you can't do it too often during word wrap, or you'll tank performance.
If you're splitting strings to graphemes for word wrap, you're doing it wrong. Unicode segmentation defines a word segmentation algorithm that should be used for that use case instead.