Python 2 times slower than Perl

Steve Holden sholden at
Tue Jul 17 20:32:44 EDT 2001

"Skip Montanaro" <skip at> wrote in message
news:mailman.995408249.15783.python-list at
>     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 mailing list