Python is slow?

bearophileHUGS at bearophileHUGS at
Wed Sep 24 02:15:24 CEST 2008

> It seems we have been implementing different algorithms. kd-trees are
> not BK-trees.

Sorry for my silly mistake :-)

Note: in your code I don't know if the collections.deque data
structure may help (it's faster than list for appending), but I
presume that's not a bottleneck.


More information about the Python-list mailing list