Python is slow?

bearophileHUGS at lycos.com bearophileHUGS at lycos.com
Tue Sep 23 20:15:24 EDT 2008


sturlamolden:
> It seems we have been implementing different algorithms. kd-trees are
> not BK-trees.
> http://www.scipy.org/Cookbook/KDTree

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.

Bye,
bearophile



More information about the Python-list mailing list