Click here to Skip to main content
15,887,746 members
Home / Discussions / C#
   

C#

 
GeneralRe: system.io.filenotfoundexception from using WaveFormat structure Pin
tjeffries16-Jun-09 12:58
tjeffries16-Jun-09 12:58 
GeneralRe: system.io.filenotfoundexception from using WaveFormat structure Pin
tjeffries16-Jun-09 13:43
tjeffries16-Jun-09 13:43 
GeneralRe: system.io.filenotfoundexception from using WaveFormat structure Pin
molesworth16-Jun-09 22:51
molesworth16-Jun-09 22:51 
GeneralRe: system.io.filenotfoundexception from using WaveFormat structure Pin
tjeffries17-Jun-09 6:44
tjeffries17-Jun-09 6:44 
QuestionHow to improve .net app performance ? Pin
hdv21215-Jun-09 11:14
hdv21215-Jun-09 11:14 
AnswerRe: How to improve .net app performance ? Pin
Luc Pattyn15-Jun-09 11:38
sitebuilderLuc Pattyn15-Jun-09 11:38 
GeneralRe: How to improve .net app performance ? Pin
hdv21215-Jun-09 12:10
hdv21215-Jun-09 12:10 
GeneralRe: How to improve .net app performance ? Pin
Luc Pattyn15-Jun-09 12:30
sitebuilderLuc Pattyn15-Jun-09 12:30 
There is no magic solution to performance problems.

Tools may help you in figuring out where the problem is, common sense should do that too (unless there are many people, and many component vendors involved).
Some tools may claim and try and improve performance a bit, IMO all too often what they do is try and remedy something that is basically wrong, and should be fixed, not softened up a bit.

Startup time is determined by:
1. the amount of code that needs to be loaded, rebased and organized; having lots of DLL files on distant servers would not help. Dynamically loading things, if and when required, could be a step in the right direction.
2. the amount of user code that needs to be jitted; occasionally splitting some huge classes in smaller ones might help.
3. the amount of user code that needs to be executed before the app becomes useful; not showing anything until a complex form full of database information is shown, would be wrong. A splash screen does not help objectively, it eases the user's mind though. Postponing operations whose results are not needed from the very first moment is always a good idea.

Furthermore, startup latency may be improved by all the measures that improve performance in general: not executing what is not needed, choosing appropriate algorithms, not making things unnecessarily complex, avoiding Forms with 50+ Controls, using efficient coding techniques, being economical with objects (e.g. not creating a new Font for every word on a Form).

And if CPU load is way below 100% during critical periods, using asynchronous operations and/or multi-threading judiciously will be a big help.

I always include logging code in my apps; my log shows major actions with current time, and outputs that to a text file; anytime two consecutive logs are more than 100 msec apart, I get suspicious and try and figure out why the app isn't moving forward.

In all, getting the right performance is part of software development, there is some science to it, and some art; it takes lots of common sense and experience, and no magic.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.

GeneralRe: How to improve .net app performance ? Pin
Christian Graus15-Jun-09 15:09
protectorChristian Graus15-Jun-09 15:09 
GeneralRe: How to improve .net app performance ? Pin
hdv21215-Jun-09 18:58
hdv21215-Jun-09 18:58 
GeneralRe: How to improve .net app performance ? Pin
N a v a n e e t h15-Jun-09 18:12
N a v a n e e t h15-Jun-09 18:12 
GeneralRe: How to improve .net app performance ? Pin
S. Senthil Kumar16-Jun-09 1:23
S. Senthil Kumar16-Jun-09 1:23 
GeneralRe: How to improve .net app performance ? Pin
N a v a n e e t h16-Jun-09 15:44
N a v a n e e t h16-Jun-09 15:44 
GeneralRe: How to improve .net app performance ? Pin
S. Senthil Kumar16-Jun-09 18:14
S. Senthil Kumar16-Jun-09 18:14 
AnswerRe: How to improve .net app performance ? Pin
Not Active15-Jun-09 11:48
mentorNot Active15-Jun-09 11:48 
AnswerRe: How to improve .net app performance ? Pin
Pete O'Hanlon15-Jun-09 12:09
mvePete O'Hanlon15-Jun-09 12:09 
Questioncompare pictures of different sizes [modified] Pin
netDeveloper15-Jun-09 10:35
netDeveloper15-Jun-09 10:35 
AnswerRe: compare pictures of different sizes Pin
I Believe In GOD15-Jun-09 10:43
I Believe In GOD15-Jun-09 10:43 
GeneralRe: compare pictures of different sizes Pin
netDeveloper15-Jun-09 10:44
netDeveloper15-Jun-09 10:44 
AnswerRe: compare pictures of different sizes Pin
Luc Pattyn15-Jun-09 10:45
sitebuilderLuc Pattyn15-Jun-09 10:45 
GeneralRe: compare pictures of different sizes Pin
netDeveloper15-Jun-09 10:53
netDeveloper15-Jun-09 10:53 
GeneralRe: compare pictures of different sizes Pin
Luc Pattyn15-Jun-09 10:58
sitebuilderLuc Pattyn15-Jun-09 10:58 
GeneralRe: compare pictures of different sizes Pin
I Believe In GOD15-Jun-09 12:01
I Believe In GOD15-Jun-09 12:01 
GeneralRe: compare pictures of different sizes [modified] Pin
Luc Pattyn15-Jun-09 12:04
sitebuilderLuc Pattyn15-Jun-09 12:04 
GeneralRe: compare pictures of different sizes Pin
I Believe In GOD15-Jun-09 12:11
I Believe In GOD15-Jun-09 12:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.