3 ms·
libc tolower() works on a single char at a time. This post is about the gains you can get by converting multiple chars at once.
by vinkelhake 4y ago
libc tolower() works on a single char at a time. This post is about the gains you can get by converting multiple chars at once.
- londons_explore 4y agoPresumably with the right __inline stuff it could be vectorized by a compiler, since tolower is normally called from a loop? Although I guess since it's often a dynamically linked library, said optimizations would have to happen at load time, and the dynamic loader doesn't do such things... :-(