We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Slow performance in new Diagram()

Thread ID:





79394 Feb 6,2009 03:21 AM UTC Aug 18,2010 12:14 PM UTC WinForms 8
Tags: Diagram
Lan Mo
Asked On February 6, 2009 03:21 AM UTC

Hi There,
I have a form with Diagram control on it.
in form's InitializeComponent(),
I found this line takes 9 second to finish:
this.diagram = new Syncfusion.Windows.Forms.Diagram.Controls.Diagram();

I thought the diagram control may have some properties to set for quick-drawing performance.

Do you have any idea?



private void InitializeComponent()
this.components = new System.ComponentModel.Container();
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(frmDecisionTree));
this.pnlDiagram = new System.Windows.Forms.Panel();
this.lblDiagram = new STN.PMA.UL.tmpLabel();
this.diagram = new Syncfusion.Windows.Forms.Diagram.Controls.Diagram();
this.pnlMin = new STN.PMA.UL.tmpPanel();

Ajeet M [Syncfusion]
Replied On February 6, 2009 06:10 AM UTC

Hi Lan,

I had thoroughly verified this in our test lab. I am afraid, but I was not able to reproduce the issue.

I was able to code through that line in mere 204 milliseconds or 0.204 seconds against, 9 seconds as in your case.

For your convenience, I am attaching my sample file that will pop up displaying the time taken to code through the line for diagram instantiation.

Let me know if you shall need any further clarifications in this regard.

Happy Coding!
- Ajeet


Lan Mo
Replied On February 7, 2009 02:08 AM UTC

Hi Ajeet,
Thanks you for your sample.
I've added some code to display the time for Load and Save button click.

I've also found your sample is slow. I've run it in VS2005/c# IDE debug mode and syncfusion studio V4.4.0.51. My laptop is HP,WinXP, Intel(R) Core(TM) Duo CPU T7700@2.40GHZ,3.00GB of RAM.

I tested it for 4 cases. Please see my attached screen shots.

Case A: No wireless Internet connection and MSN,using Battery Power
Case B: No wireless Internet connection and MSN,using External-Plug Power
Case C: Having wireless Internet connection and MSN,using Battery Power
Case D: Having wireless Internet connection and MSN,using External-Plug Power

You can see using laptop battery and internet connection will greatly slow down the Diagram() and Open file.

I've repeated these 4 case a few times and the results are quite stable.

Why could internet MSN and Battrey Power affect the New Diaprogram() line so significantly?




Lan Mo
Replied On February 7, 2009 02:15 AM UTC

Hi Ajeet,
Here is your sample with my revised code.
Please note I have only added a few codes on
Load and Save button click event to display times for open and save .edd files.
No any other changes.
You can use it to test these 4 cases on your computer.




Ajeet M [Syncfusion]
Replied On February 9, 2009 05:34 PM UTC

Hi Lan,

You said that the Diagram was taking 9 seconds to load. I would be glad if you could arrange for a sample for us to test the performance in this regard.


Lan Mo
Replied On February 9, 2009 08:21 PM UTC

Hi Ajeet,
Please see the attached sample in my previous email:

This is what I used to test the performance.


Ajeet M [Syncfusion]
Replied On February 10, 2009 01:17 PM UTC

Hi Lan,

We are currently working on this. We shall update to you by tomorrow the results of our tests.

Warm Regards,

Jatin Shah
Replied On August 18, 2010 12:09 PM UTC

Hi Ajit

I am having the similar problem with Diagram control in ASP.NET.
I have a very big diagram having 200 nodes connected with each other in a treeview.
I have saved the diagram in .edd file. Size of file is around 2MB.
I am testing application on local computer only. But still it takes 7 to 8 seconds to display diagram after Page_Load completes.
Have you got any solution for that?


Jatin Shah
Replied On August 18, 2010 12:14 PM UTC

Further to the above comment,
I am trying to load the Diagram from .edd file. it takes 3 seconds to load.
But it takes more than 7 seconds after Page_Load event is completed. (I am using ASP.NET 3.5).
Also when I click on Node to do Call back, it again takes more than 7 seconds to select node and re-render the diagram (7 seconds after completion of server side code to select node).

Can you please suggest me any performance optimization steps.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon