InitializeComponent() performance

Code profiling for .NET Developers

InitializeComponent() performance

Postby HeathDillon » Sun Aug 21, 2011 11:01 pm


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.....?
Posts: 1
Joined: Sun Aug 21, 2011 10:53 pm

Postby Chris.Allen » Mon Aug 22, 2011 11:50 am

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.
Posts: 579
Joined: Thu Mar 12, 2009 3:17 pm

Return to ANTS Performance Profiler Previous Versions

Who is online

Users browsing this forum: No registered users and 0 guests