[thelist] Large expandable tree

Damien COLA damiencola at wanadoo.fr
Wed Aug 27 19:47:15 CDT 2003

I think 6K nodes will be too much to construct on the fly with
javascript, because javascript seems to me a slow language compared to
java or shockwave (I am not aware of speed comparaisons)
I suggest you search for a java applet doing just that, faster. You will
generate a text file that the java applet will read to build the tree.

  Damien COLA

-----Original Message-----
I have a page which shows an expandable/collapsible tree of nodes. The
server prints out the nodes in a JavaScript array and the client side
code builds the tree.

Everything works well, but now our trees are growing larger and the time
to build the tree is growing too large. This is not terribly surprising,
given the nature of the code and how it processes the array. When we
first built the page, I was not aware that our trees might grow so
large. :)

The boss says that a 1500 node tree takes 2 minutes to build and we may
soon be seeing 6K nodes.

More information about the thelist mailing list