Library for counting length of chars faster than Chars::count()
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)
repeated "錆" (only 3byte utf8)
See performance bench for details.
future plan
sse (128bit)