Python 2 times slower than Perl
sholden at holdenweb.com
Wed Jul 18 02:32:44 CEST 2001
"Skip Montanaro" <skip at pobox.com> wrote in message
news:mailman.995408249.15783.python-list at python.org...
> Christopher> I can't speak for Perl, but Python definately does not
> Christopher> evaluate the expression at compile time. This is a
> Christopher> I've had with Python. I wish that when given the -O
> Christopher> the compiler would do constant subexpression elimination.
> It's rare in normal Python code to actually see a constant expression
> computed inside a loop. Fortunately, it would appear most folks aren't
> dumb, so while you can take steps to eliminate them, there aren't
> going to be very many to eliminate.
> [ ... ]
Skip, this talk of eliminating dumb people who code inefficient loops
identifies you all too clearly as a hit man for the PS
More information about the Python-list