bad generator performance

Fredrik Lundh fredrik at pythonware.com
Sun Feb 6 11:38:00 EST 2005


Johannes Ahl-mann wrote:

> the program is supposed to manage bookmarks and i thought it would be a
> good idea to represent the bookmarks as a tree (with folders as internal
> nodes and bookmarks as leaves).
> so, a tree is never going to hold more than say 2000 nodes and is going
> to be rather wide than deep!

maybe

    http://pyxml.sourceforge.net/topics/xbel/

stored and manipulated using

    http://effbot.org/zone/element-index.htm

would simplify things for you?

</F> 






More information about the Python-list mailing list