Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic performance of adding item into diagram (Read 1253 times)
billcch
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 8
Joined: Nov 15th, 2007
performance of adding item into diagram
Jul 26th, 2008 at 12:55am
Print Post  
1.
// diagram1 is a MindFusion.Diagramming.Diagram
// item is a ShapeNode
this.diagram1.Items.Add(item);

this line called 37 times, and took 14.8881 seconds (0.4024 sec / per call)

2.
// item is a TableNode
this.diagram1.Items.Add(item);

this line called 17 times, and took 8.9669 seconds (0.5275 sec / per call)


We are not satisfying with this performance, how can we improve the performance?

BTW: we are using FC.Net Pro 5.1.0, and undo is disabled.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: performance of adding item into diagram
Reply #1 - Jul 28th, 2008 at 8:48am
Print Post  
If the diagram contains some links with AutoRoute enabled, each of them might be re-routed after each call to Items.Add(item). Either create the links after all nodes are created, or enable link auto-routing after the nodes have been created.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint