Code that ought to run fast, but can't due to Python limitations.
Lawrence D'Oliveiro
ldo at geek-central.gen.new_zealand
Mon Jul 6 04:32:34 EDT 2009
In message <4a4f91f9$0$1587$742ec2ed at news.sonic.net>, John Nagle wrote:
> ("It should be written in C" is not an acceptable answer.)
I don't see why not. State machines that have to process input byte by byte
are well known to be impossible to implement efficiently in high-level
languages. That's why lex/flex isn't worth using. Even GCC has been moving
to hand-coded parsers, first the lexical analyzer, and more recently even
for the syntax parser (getting rid of yacc/bison), certainly for C.
More information about the Python-list
mailing list