Re: No need to optimize in assembly anymore
From: Scott Moore (samiam_at_moorecad.com)
Date: 05/17/04
- Next message: Matt Taylor: "Re: No need to optimize in assembly anymore"
- Previous message: Scott Moore: "Re: No need to optimize in assembly anymore"
- In reply to: pH: "Re: No need to optimize in assembly anymore"
- Next in thread: Scott Moore: "Re: No need to optimize in assembly anymore"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Next message: Matt Taylor: "Re: No need to optimize in assembly anymore"
- Previous message: Scott Moore: "Re: No need to optimize in assembly anymore"
- In reply to: pH: "Re: No need to optimize in assembly anymore"
- Next in thread: Scott Moore: "Re: No need to optimize in assembly anymore"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|