String compare performance

bearophile bearophileHUGS at lycos.com
Sat Nov 27 15:21:29 PST 2010


Kagamin:

> You need only match 3-char strings?
> Try this hack

I agree there are are ways to speed up the code, probably the D #3 code is fast enough. But while some things are better left to Phobos, comparing short strings efficiently is the compiler's job, not mine (and I am not sure your trick works in C99).

Bye,
bearophile


More information about the Digitalmars-d mailing list