Python is slow?
george.sakkis at gmail.com
Tue Sep 23 16:13:16 CEST 2008
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++.
More information about the Python-list