I am creating graph with about 200 nodes and more. My node is represented by not more than 5 DOM Objects (2 rects, image, text)
and many class members (non-DOM objects: arraylists, Strings etc.) Branch is also made of not more than 5 DOM objects. I also need some additional DOM objects to create graph.
When i create graph with about 50 nodes (or 500-1000 DOM objects on document) speed is not an issue, but when I create graph with about 3000-4000 DOM objects (200 nodes and branches and etc.) execution speed becomes an issue (it is created about 30sec). I've done some measures and concluded that DOM's appendChild() function works very very slowly (BUT only when appending on DOM tree that is part of root element of JSVGCanvas's document - appendChild works fine when appending to DOM object that is not yet part of DOM tree). Is there a way to increase speed of creating DOM tree ?
Details: I use JSVGCanvas's update manager to update DOM view (and create graph).
View this message in context: DOM's appendChild() appears to be very slow
Sent from the Batik - Users mailing list archive at Nabble.com.
- DOM's appendChild() appears to be very slow AIvan
-