Python 2 times slower than Perl
Steve Holden
sholden at holdenweb.com
Tue Jul 17 20:32:44 EDT 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
problem
> Christopher> I've had with Python. I wish that when given the -O
option
> 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
that
> dumb, so while you can take steps to eliminate them, there aren't
generally
> 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