Python is slow?

bearophileHUGS at lycos.com bearophileHUGS at lycos.com
Wed Sep 24 02:15:24 CEST 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