Using vectorization to speed up UTF-8 character counting(daemonology.net)
daemonology.net
Using vectorization to speed up UTF-8 character counting
http://www.daemonology.net/blog/2008-06-05-faster-utf8-strlen.html
2 comments
I don't think I believe those benchmarks. Many of those numbers are significantly slower (!) than main memory bandwidth, and for code like strlen() which can be naively implemented in about three instructions per byte.
Something is wrong with the testing, I think.
Something is wrong with the testing, I think.
A similar article which originally taught me these tenants is:
http://rentzsch.com/papers/straightenUpAndFlyRight