InitializeComponent() performance

Code profiling for .NET Developers

Moderators: Luke Jefferson, StephenC, Alex.Davies, AndrewH, melvyn.harbour, Laura Morley

InitializeComponent() performance

Postby HeathDillon » Mon Aug 22, 2011 12:01 am

Hi,

New to using this performance tool.. and just starting to learn how it works..

I ran my application, and the result was that the InitializeComponent() code was around 25% of the 'Time'.

This is the standard winforms code that I don't deal with, and looking inside this code section, it looks like the time is being consumed by loading the third party controls I use on the form.

So I assume that there is not realy anything I can do to improve this code section.

The rest of the code is less than 1% time, so there is nothing else really causing a bottle neck, so I guess this is as much performance as I can get from my code.....?
HeathDillon
 
Posts: 1
Joined: Sun Aug 21, 2011 11:53 pm

Postby Chris.Allen » Mon Aug 22, 2011 12:50 pm

Indeed- that's exactly what profiling and optimisation is all about- finding out where the bottleneck is. Very often you can't do anything about it directly but at least you know you can't so then you move on.
Chris.Allen
 
Posts: 594
Joined: Thu Mar 12, 2009 4:17 pm


Return to ANTS Performance Profiler 6

Who is online

Users browsing this forum: No registered users and 0 guests