Is python really slow?

Peter Hansen peter at engcorp.com
Thu May 23 00:41:56 EDT 2002


"Michael P. Soulier" wrote:
> 
> On Tue, 21 May 2002 22:08:34 -0400, Peter Hansen <peter at engcorp.com> wrote:
> >
> > As others have noted, Python is the same speed as Perl, and the
> > use of C comes more from the desire to integrate with other
> > software than from a need for improving on Python's speed.
> 
>     Hmm. I love Python, but I have not found it as fast as Perl. It seems to
> run about the speed of Tcl 8.3, but Perl seems to leave it in the dust, as
> least for the comparisons that I've done.
>     One of those was generating prime numbers, so it was highly CPU intensive
> operations. The Python and Tcl versions were about the same speed. The Perl
> was roughly 50-100% faster.

Want to post the implementations used for both?  My guess is that
the Python version was not very Pythonic...

-Peter



More information about the Python-list mailing list