3 ms·
The previous >0 algorithm didn't short-circuit. There is no change to short-circuit behavior here.
by loeg 9y ago
The previous >0 algorithm didn't short-circuit. There is no change to short-circuit behavior here.
- Sharlin 9y agoAh, I was thinking of the naive implementation in the previous post [1]. [1] https://lemire.me/blog/2018/05/09/how-quickly-can-you-check-that-a-string-is-valid-unicode-utf-8/ https://lemire.me/blog/2018/05/09/how-quickly-can-you-check-...