Re: WinForms Performance issues

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"mitch" <mitch@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:2AAE1164-5361-48BC-A0B7-E90FDAB251E0@xxxxxxxxxxxxxxxx
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


.



Relevant Pages

  • RE: cab files with #if (!COMPACT)
    ... We used NANT to compile our projects, during our nant build we pass a ... > apps that work under the full framework. ... > the Desktop Framework called points, we also have a project in a different ... > Desktop Framework app and the CF app and the function is supported under ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: PPC 2002 with VS.NET 2003
    ... *every* app compiled with eVC will run without the Compact Framework. ... > While we are on this subject - has anyone been able to compile an app ...
    (microsoft.public.pocketpc.developer)
  • Re: Force references to run against .NET 1.1
    ... app is running under 2.0 and you are loading the referenced dlls in your ... app, then they too will run under 2.0. ... You can force your app to run under a specific version of the framework, but if you are using generics then it won't work. ... If I compile the DLL's into a separate ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Can VS 2005 build an app that works with .NET Framework 1.1?
    ... You could perhaps try to compile the source code with 1.1 (the compiler is ... Of course it may fails depending if you are using ... > I know the official answer is that framework 2.0 is required. ... > simple C# app that is used in a testing environment on systems that don't ...
    (microsoft.public.dotnet.framework)
  • Re: WinForms Performance issues
    ... You can use any .NET profiler available, the one I have used is ANTS ... I'm rooting for the .NET framework to have performance hidden in it ... When I run my app through an obfuscator and it compiles in the .NET ... Is it slow the first time you run it and faster subsequestly? ...
    (microsoft.public.dotnet.languages.csharp)