If speed is really important for you, you may consider SIMD instructions.

D. Lemire gave an example for this in his nice blog:

[https://lemire.me/blog/2017/02/14/how-fast-can-you-count-lines](https://lemire.me/blog/2017/02/14/how-fast-can-you-count-lines)/

Reply via email to