Yitzchak Scott-Thoennes wrote:
That code is autogenerated; deciding when having perl_keywords.pl use strEQ would make sense isn't worth the bother IMO.
OK, that makes sense. I thought someone went through the trouble to "optimize" that and it didn't seem worthwhile. It should be possible to enhance Devel::Tokenizer::C to be brighter: as soon as you get past a certain length of the token (TBD) and it is otherwise unique, use strEQ, else use the individual character comparison.
But as you said, it probably isn't worth the trouble (premature optimization in the other direction)...
John -- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4501 Forbes Boulevard Suite H Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5748