Playing with Qt4 tree control in qleolite, it seems that:

- Creating a whole LeoPyRef.leo (i.e. adding all the nodes as
QTreeWidgetItems to the tree - 5942 nodes) takes 0.5 seconds on my
machine. I repeated the process 2000 times before getting bored. It
didn't seem to leak memory, or choke in other ways. Creation time
fluctuated around 0.5 all the time
- Note that it created the whole tree, i.e. it didn't optimize away
invisible / unexpanded nodes (at least explicitly - Qt probably of
course does it in the background).
- expandAll and collapseAll are instantaneous (this is very cool - a
good use case is to use expandAll, then add search box that filters
the tree by headline to quickly find relevant nodes in a "modern" way
- with all nodes expanded, collapsing was fast but re-expanding took a while.

- You can do this to play with it (adjust paths accordingly):


bzr branch lp:~villemvainio/leo-editor/qleolite
cd qleolite
python qleolite.py /home/ville/leo-editor/leo/core/LeoPyRef.leo

(this also creates ileo console for the loaded document in current term)

w.treeWidget.expandAll()

This, of course, needs ipython. You also need to do

easy_install ipython-extensions

If you don't have ipy_leo.py available already.

-- 
Ville M. Vainio
http://tinyurl.com/vainio

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to