Message 159132 - Python tracker (original) (raw)
I'm -1 on using signed char in the implementation. If this gives any advantage, it's because the compiler is not able to generate as efficient code for unsigned char as it does for signed char. So the performance results may again change if you switch compilers, or use the next compiler version.
The code should do what is logically correct; IMO, UTF-8 is really a sequence of unsigned bytes, conceptually.
So if you want to demonstrate any performance improvements, you need to do so with unsigned chars.