WinForms Performance issues

G

Guest

Hello,

I've taken to .NET obviously for the RAD abilities. As I'm going forward and
building an indepth application I am becoming more and more disappointed with
the performance. Refreshing, starting up, etc, is very slow compared to
software like Skype. In my installer for my program, I even run ngen to
"compile" it into a native image on my user's desktops.

Could someone give me some pointers or tips, or useful links, maybe I'm
coding my app wrong...

I'm rooting for the .NET framework to have performance hidden in it
somewhere... otherwise I may have to switch to something like C/C++ for my
next application.

One thing I am doing, is using ilmerge.exe to merge a few dlls into one exe
(for a simplified installation directory). Could this be slowing down my
program? And I'll even admit I'm using the Infragistics presentation
framework. I think this might be a major hold-up as well...

When I run my app through an obfuscator and it compiles in the .NET
framework to make my app run independently, the performance increases as
well, but so does the size (another 10 megs)...

Any and all comments will be appreciated, Thanks!
 
R

Richard Blewett [DevelopMentor]

mitch said:
Hello,

I've taken to .NET obviously for the RAD abilities. As I'm going forward
and
building an indepth application I am becoming more and more disappointed
with
the performance. Refreshing, starting up, etc, is very slow compared to
software like Skype. In my installer for my program, I even run ngen to
"compile" it into a native image on my user's desktops.

Could someone give me some pointers or tips, or useful links, maybe I'm
coding my app wrong...

I'm rooting for the .NET framework to have performance hidden in it
somewhere... otherwise I may have to switch to something like C/C++ for my
next application.

One thing I am doing, is using ilmerge.exe to merge a few dlls into one
exe
(for a simplified installation directory). Could this be slowing down my
program? And I'll even admit I'm using the Infragistics presentation
framework. I think this might be a major hold-up as well...

When I run my app through an obfuscator and it compiles in the .NET
framework to make my app run independently, the performance increases as
well, but so does the size (another 10 megs)...

Any and all comments will be appreciated, Thanks

Is it slow on just on startup or all the time?

Is it slow the first time you run it and faster subsequestly? (could be
simply the load of the runtime for the first time on the machine is hitting
you)

Have you profiled the application to see where the time is being spent?

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk
 
L

Lebesgue

You can use any .NET profiler available, the one I have used is ANTS
profiler from RedGate, which is very easy to use and they offer a free 14
day trial.
 

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