where python is slower?

Anders J. Munch andersjm at inbound.dk
Fri Feb 7 15:40:25 EST 2003


"Andrew Dalke" <adalke at mindspring.com> wrote:
> Anders J. Munch:
> > It means that none of us wanted to do the hard work involved in
> > writing the much faster C++ version.
>
> I'm humor impaired this morning.  Do I interpret this to slyly advocate
> Python because it's so much easier to develop in Pyton over C++?
>
> Or is it a statement that C++ really would be that much faster,
> even though the numbers suggest that it would be at most about
> twice as fast?

Both ;-)

The grep/sort solution does a complete sort.  A C++ program that uses
a smarter, better complexity algorithm like the Python versions do
could be a lot faster.  Or is it i/o-bound?  I kinda presumed it
wasn't but I'm having second thoughts.

- Anders







More information about the Python-list mailing list