← Back to context

Comment by burntsushi

3 days ago

> How about porting BurntSushi's absurdly great Rust optimized string search routines to C and making them faster?

How did it do? :-)

Alarmingly well! https://gisthost.github.io/?1bf98596a83ff29b15a2f4790d71c41d...

It couldn't quite beat the Rust implementation on everything, but it managed to edge it out on at least some of the benchmarks it wrote for itself.

(Honestly it feels like a bit of an afront to the natural order of things.)

That said... I'm most definitely not a Rust or C programmer. For all I know it cheated at the benchmarks and I didn't spot it!