Perfect hashing for string switch

BCS none at anon.com
Fri Jan 22 14:01:44 PST 2010


Hello bearophile,

> This is just a possible optimization, it's not a new feature request.
> 
> A perfect hash computed at compile time can be good to implement the
> string switches, I have created a small benchmark:

Have you compared it to a decisition tree or lex style state mechine?





More information about the Digitalmars-d mailing list