Python is slow?

James Matthews nytrokiss at gmail.com
Fri Sep 26 15:41:35 EDT 2008


+1 QOTW...

On Tue, Sep 23, 2008 at 7:13 AM, George Sakkis <george.sakkis at gmail.com>wrote:

> On Sep 23, 9:57 am, Grant Edwards <gra... at visi.com> wrote:
>
> > On 2008-09-23, sturlamolden <sturlamol... at yahoo.no> wrote:
> >
> > [...]
> >
> > > After having a working Python prototype, I resorted to rewrite the
> > > program in C++. The Python prototype took an hour to make, debug and
> > > verify. The same thing in C++ took me almost a day to complete, even
> > > with a working prototype as model. To my surprise, the resulting beast
> > > of C++ required 64.3 seconds to construct the same kd-tree. Searching
> > > the tree was not faster either, 1,000 points required 38.8 seconds. I
> > > wasted a day, only to find my Python prototype being the faster.
> >
> > > We may conclude that I'm bad at programming C++,
> >
> > AFAICT, _everybody_ is bad at programming C++.
>
> +1 QOTW
> --
> http://mail.python.org/mailman/listinfo/python-list
>



-- 
http://www.goldwatches.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080926/acddc5c3/attachment-0001.html>


More information about the Python-list mailing list