Performance tuning a WinForm app

F

Frank Rizzo

I am looking for some pointers on how to tune a pretty large WinForm app
(written in vs2005). Currently it is pretty sluggish on a 2.8 Ghz P4
with plenty of RAM. The forms have a lot of controls (but they are well
hidden in tabs), however the redrawing of controls (even simple ones
like a textbox and labels) is simply sluggish, much more so, than on a
similar (in size) app I worked on in .NET 1.x. I tried profiling the
application, but basically, the slowness occurs in system methods such
as this.Controls.Add and, subsequently, InitializeComponent function and
some other places.

I guess, I am looking for some guidelines on how to make a fast WinForm
app. Also, are there any automated perf checking tools that can tell me
where the bottlenecks are? Preferably low-cost or free.

Thanks.
 
M

Michael Nemtsev

Hello Frank,

Over there is a good article related this area http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag/html/scalenetchapt05.asp

FR> I am looking for some pointers on how to tune a pretty large WinForm
FR> app (written in vs2005). Currently it is pretty sluggish on a 2.8
FR> Ghz P4 with plenty of RAM. The forms have a lot of controls (but
FR> they are well hidden in tabs), however the redrawing of controls
FR> (even simple ones like a textbox and labels) is simply sluggish,
FR> much more so, than on a similar (in size) app I worked on in .NET
FR> 1.x. I tried profiling the application, but basically, the slowness
FR> occurs in system methods such as this.Controls.Add and,
FR> subsequently, InitializeComponent function and some other places.
FR>
FR> I guess, I am looking for some guidelines on how to make a fast
FR> WinForm
FR> app. Also, are there any automated perf checking tools that can
FR> tell me
FR> where the bottlenecks are? Preferably low-cost or free.
FR> Thanks.
FR>
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsch
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top