News for hackers. Stuff that matters.
Re:Using vectorization to speed up UTF-8 character counting by nilobject on Thursday June 05, 2008 @08:28AM (#209840)
I thought the title meant it was using Altivec or SSE, but it's merely operating on a chunk of 4 bytes at a time dealing with misaligned data up front. Still a good article, despite my initial disappointment.

A similar article which originally taught me these tenants is:

http://rentzsch.com/papers/straightenUpAndFlyRight

Re:Using vectorization to speed up UTF-8 character counting by cperciva on Thursday June 05, 2008 @08:45AM (#209848)
it's merely operating on a chunk of 4 bytes at a time

If you have a modern CPU, that code operates on 8 bytes at a time. :-)