Library for counting length of chars faster than Chars::count()

API

Idea is from UTF-8のコードポイントはどうやって高速に数えるか, and UTF-8のコードポイントはどうやってもっと高速に数えるか.

usage

``` //before "Hello, world!".chars().count();

//after "Hello, world!".chars_count(); ```

bench

repeated "a" (only 1byte utf8) bench 1byte

repeated "錆" (only 3byte utf8) bench 3byte

See performance bench for details.

future plan

sse (128bit)

avx512 UTF-8のコードポイントはどうやってAVX-512で高速に数えるか