Proposal for Optimized Character Type Function

The Cuthour cuthour@gmail.com
Sun Mar 2 03:30:48 GMT 2025



On 2025/03/02 4:34, enh wrote:
> you should benchmark this --- on modern cpus, the opposite is true.
> indeed, Android moved in the opposite direction (though we do still
> leave the legacy table visible for app compat reasons).

Although it was a rough test, it's about 15% faster.


$ time libc_ctype 99999999 >aaa
real    0m16.160s
user    0m0.000s
sys     0m0.015s

$ time my_ctype 99999999 >aaa

real    0m13.776s
user    0m0.000s
sys     0m0.046s

$



More information about the Libc-alpha mailing list