|
|
|
|
|
by skrellm
85 days ago
|
|
I've also implemented a SIMD accelerated, but case in-sensitive (*) search algorithm as an stb-style single header library, also based on Wojciech Muła's work. https://gitlab.com/bztsrc/fast_memcasemem See the performance comparison in the README, it's about 6 times faster than libc. (*) - full UTF-8 support, but only works for UNICODE codepoints where the UTF-8 encoding lengths are the same for lowercase and uppercase. There are only 27 out of 40576 pairs which aren't handled (listed in the README). |
|
This very same property got me to post this [1], which sent me down the rabbithole of learning about Unicode in earnest and building my Unicode tool. Which may have an initial release some time this millennia... maybe.
1. https://news.ycombinator.com/item?id=42014045