Re: No need to optimize in assembly anymore

From: Scott Moore (samiam_at_moorecad.com)
Date: 05/17/04


Date: Mon, 17 May 2004 19:53:07 +0000 (UTC)

pH wrote:

> Low level optimization is only a waste of time if the cost in time and
> effort is not worth the end result. I'm sure few would argue that the
> difference between 9ms and 10ms is significant enough to worry
> about. But if that difference scales linearly to hours... who would
> argue that the difference between 9hrs and 10hrs is not worth the
> effort to optimize?

Back to basics. If you have program N that you plan to run K times, then
the time required to optimize that, O (as in your own time), needs to be
less than (N-O)*K, ie., the total time you save by speeding up the program
must be greater than the time you take optimizing it. Otherwise you could
accomplish the same goal by simply performing longer runs.

This applies to batch mode problems only. Realtime problems, such as getting
all elements drawn within a frame time, are "deadline" related and must run
within a certain period of time.



Relevant Pages

  • Re: No need to optimize in assembly anymore
    ... > effort is not worth the end result. ... I'm sure few would argue that the ... accomplish the same goal by simply performing longer runs. ... This applies to batch mode problems only. ...
    (comp.lang.asm.x86)
  • Re: Martin Vs Spin. (No outside help Plz)
    ... I don't give a damn about what you think of the programme. ... You want to argue about something in it go argue with Dr. Rutherford. ... I don't really think a debate about what I find interesting would be worth while. ...
    (talk.origins)
  • Re: OJ Simpson "If I Did It " song free download from Carla Ulbrich
    ... Slick wrote: ... i was shocked they were goign to put out that book, ... pulled it (of course now each copy will be worth thousands) but more ... I have doubts) (I also have no wish to argue it because all arguments in this case are logical and it's hard to argue with logic) ...
    (rec.music.filk)
  • Re: Birdbrain: The Faith of Naturalism
    ... Therefore the issue is bogus. ... It is not worth the time of intelligent people to even argue about it. ... The materiality of the world has more evidence supporting it than its denial. ...
    (talk.origins)

Loading