|Layouting a large number of draw2d widgets in a Canvas [message #1064029]
||Mon, 17 June 2013 10:59
| Saurabh Srivastava
Registered: June 2012
We are facing a problem, in handling a large number of Draw2d Figures, in a single Canvas. We are building a Tree of the nodes, with Connections between a parent, and a child node. The number of figures, in the canvas are of the order of 10000 (just the "Node" Figures, there are about another 10000 "Connection" figures too, that I am not counting).|
I am attaching a part of one of our diagrams in Image:
The problem is this: the nodes in the tree can be collapsed or expanded. When the number of Nodes in the Tree are of the order of 1000-2000, then the Collapse/Expand takes place momentarily. However, when the node count goes higher, it takes more and more time to Collapse/Expand any particular node, which is irritating.
I have written some sample code to see, if the problem is with our code, or, that draw2d performance degrades in general with more number of widgets. The same problem exists within the sample application, which indicates that we may have to do some optimizations within the draw2d codebase itself. I made a View in Eclipse to demonstrate that. The code of the same is attached as an Eclipse RCP Project.
Try to expand/collapse figures in the View (by clicking on the "x" or ">" buttons), it'll take time (won't occur instantaneously). Can anyone please provide some pointers as to how this problem can be solved?
Thanks in advance.
(Size: 19.98KB, Downloaded 323 times)
(Size: 19.17KB, Downloaded 63 times)
Powered by FUDForum
. Page generated in 0.01661 seconds