Table lookups - this is pretty definitive
Marco Leise
Marco.Leise at gmx.de
Tue Apr 1 20:50:55 PDT 2014
Do I see it right that it really comes down to one use of
isIdentifierStart(c) in one huge switch-case? Since "warp"
seems to be interested only in ASCII properties since it is
processing C code, could the switch-case be optimized into a
256 entries large jump table?
If a table lookup (char->bool) is faster than multiple
comparisons, why shouldn't this apply to char->address as well?
--
Marco
More information about the Digitalmars-d
mailing list