Slow performance in new Diagram()
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?
Thanks,
Lan
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();
..............................
}
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?
Thanks,
Lan
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();
..............................
}
SIGN IN To post a reply.
8 Replies
AM
Ajeet M
Syncfusion Team
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
Diagram_WF_DiagramLoadTime_c3d010ee.zip
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
Diagram_WF_DiagramLoadTime_c3d010ee.zip
LM
Lan Mo
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 [email protected],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?
Thanks,
Lan
SlowPerformance_27e3c6b3.zip
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 [email protected],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?
Thanks,
Lan
SlowPerformance_27e3c6b3.zip
LM
Lan Mo
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.
Thanks
Lan
Diagram_WF_DiagramLoadTime_34c790e2.zip
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.
Thanks
Lan
Diagram_WF_DiagramLoadTime_34c790e2.zip
AM
Ajeet M
Syncfusion Team
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.
Regards,
Ajeet
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.
Regards,
Ajeet
LM
Lan Mo
February 9, 2009 08:21 PM UTC
Hi Ajeet,
Please see the attached sample in my previous email:
Diagram_WF_DiagramLoadTime_34c790e2.zip
This is what I used to test the performance.
Lan
Please see the attached sample in my previous email:
Diagram_WF_DiagramLoadTime_34c790e2.zip
This is what I used to test the performance.
Lan
AM
Ajeet M
Syncfusion Team
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,
Ajeet
We are currently working on this. We shall update to you by tomorrow the results of our tests.
Warm Regards,
Ajeet
JS
Jatin Shah
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?
Thanks
Jatin
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?
Thanks
Jatin
JS
Jatin Shah
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.
Thanks
Jatin
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.
Thanks
Jatin
SIGN IN To post a reply.
- 8 Replies
- 3 Participants
-
LM Lan Mo
- Feb 6, 2009 03:21 AM UTC
- Aug 18, 2010 12:14 PM UTC