Loren Merritt
Loren Merritt
You're under-selling the speedup and over-estimating the length threshold needed to break even. The previous code (i.e. `x += UTF8SKIP(x);`) is bottlenecked by a loop-carried dependency chain, which is not...
Did you (Karl) ever benchmark the really old version of utf8_length that used `x += UTF8_IS_INVARIANT(*x) ? 1 : UTF8SKIP(x);`? That branchy version was in perl prior to 2012, and...
7zip is a irrelevant. Unlike deflate, jpeg doesn't allow you to switch huffman codebooks in mid-stream. And as long as you only get one codebook, there's a simple algorithm that...