This is a migrated thread and some comments may be shown as answers.

Winform Teleric objects initialization slow

1 Answer 81 Views
ComboBox and ListBox (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ron
Top achievements
Rank 1
Ron asked on 09 Nov 2009, 06:52 PM
Hi,

Having a bit of anxiety attack finding out users are experiencing slow launch times on a Office plugin using Winforms.
Initially I thought is may be due to something I did, but found out it's all in the Telerik object initializations.
The delays are to the point that the solution is not shippable and I'm in a bind unless I can bring these long init times down.
Delays of 6 sec to 30 sec are being reported by many test users.

I put in some code to measure timings, which brought me to my conclusion.
I don't connect up the datasources until later, the long init times are with no data connected.  Also I moved all of the ResumeLayout() and performLayout()  calls to the end of the InitializeComponent() block.


[debug_timing] =
[0s 0m] AddinModule_AddinInitialize_Start 
[0s 31m] AddinModule_AddinInitialize_End 
[0s 0m] Display Form Request - Zeroed 
[0s 0m] InitializeComponent start 
[6s 515m] InitializeComponent end 
[0s 62m] Form Loading 
[0s 0m] Lookup Data Start 
[0s 671m] Lookup Data End 
[1s 718m] Display Form 

Put in some more detailed timing calls, and found:

Of this excessive initialization time:
Approx 40% of the time is spent creating the Teleric controls and the BeginInits() , From <<<a>>> to <<<b>>>
Approx 60% pf the time is spent in the Teleric EndInit() calls,  From <<c>> to <<<d>>>

private void InitializeComponent() 
{
this.SuspendLayout();
<<<a >>>>> 
new Telerik.WinControls.UI....(); 
.. 
.. 
((System.ComponentModel.ISupportInitialize)....BeginInit(); 
<<<b >>>>>
... 
setup properties for each forms object 
.. 
<<<<< c >>>>> 
((System.ComponentModel.ISupportInitialize)....EndInit(); 
<<<<< d >>>>> 
.. 
.. 
Moved all the ResumeLayout() and performLayout() calls here 
 


I love the product, and chose it primarily to provide a UI that is in line with the Office suite.  I've noticed other users experiencing similar issues.

Any thing else I can try?

Thanks.
Ron

1 Answer, 1 is accepted

Sort by
0
Martin Vasilev
Telerik team
answered on 12 Nov 2009, 02:42 PM
Hello Ron,

Please find the answer of the same question in the support topic that you have created with the same question.

Kind regards,
Martin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
ComboBox and ListBox (obsolete as of Q2 2010)
Asked by
Ron
Top achievements
Rank 1
Answers by
Martin Vasilev
Telerik team
Share this question
or