Perl code 37 times quickly than Python code??

Alex Martelli aleax at aleax.it
Wed Jan 16 10:52:07 EST 2002


"Garry Hodgson" <garry at sage.att.com> wrote in message
news:3C458E7E.725EA0A5 at sage.att.com...
    ...
> if you need speed, go with a compiled language.

If you need speed, code in Python.  Then, benchmark, profile and
extensively analyze the performance characteristics of your code.
Experiment with widely different architectures.  If you can still
boil things down to irreducible CPU-bound bottlenecks, as the last
resort recode THOSE parts only (as an extension, in C or C++) in
the rare but possible case in which existing extensions (such as
Numeric) cannot meet your performance needs.

This would be MY advice, at least.


Alex






More information about the Python-list mailing list