--- In [email protected], Thomas Hruska <[EMAIL PROTECTED]> wrote: > > Basic steps of writing performance-friendly > code: > > 1) Get the program working first (inefficiently, but functional). > 2) Run a line-level performance monitoring tool (the good ones cost > money - expect to spend at least $400 for a halfway decent tool). > 3) Look at the results of #2 and modify code to optimize out the most > inefficient portions. > 4) Repeat process until satisfied.
It might be stating the obvious, but it is probably the most important step: 0) Get the design right. While the design can be modified later (after performance monitoring), it tends to be expensive and error prone if a lot of code has already been written. The more you can get it right first time the better. John
