caesar0301 / treelib

An efficient implementation of tree data structure in python 2/3.
http://treelib.readthedocs.io/en/latest/
Other
800 stars 185 forks source link

efficiency optimizing for traversing a subtree #113

Open Charles-ux-bit opened 5 years ago

Charles-ux-bit commented 5 years ago

traversing a subtree using leaves function is very slow, will provide some optimized method in the future? thanks.

vongruenigen commented 5 years ago

It would be great if you could provide some more details to be honest, just saying "it's slow" doesn't help at all. Did you compare it to other libraries? Did it become slower in more recent versions?