This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hello, I will create a big diagram, it has about 100 groups, and each group can have 1000 nodes, there are connection of nodes and groups, the user can expand and collapse the groups, and the user can edit the diagram (add&delete nodes and connections), and I need to update the connections between the nodes and groups when user expand or collapse a group. I think I have performance problem for this big diagram, so do you have any suggestions for optimization? Thanks |
|
|
Hello Jzhou The best thing I can suggest is only add the child nodes to the group nodes when the nodes are expanded, but I'm guessing you may already do this. Also, it may be best to remove the child nodes when a group collapses if possible. You may also find that the ElbowPathfinder performs better than the AStarPathfinder. The reason for this is the ElbowPathfinder only considers the source and destination nodes, the AStarPathfinder routes the connection around all nodes. So here you could sacrifice connection layout for improved performance. You could possibly dynamically switch between pathfinders to get a balance between good connection layout and performance, but this could take a bit of experimentation. In the next version of WPF Diagrams, we'll be improving the performance of the overall product. We do not know the definite release date for this, but I have increased the priority of this project. Jason Fauchelle |
|