Ken Foskey wrote:
On Thu, 2008-07-24 at 22:55 +1000, Adelle Hartley wrote:

* treat calls to deterministic functions where all of the submitted parameters are constants, as constants within the calling code. (I think this may already happen in C++ if the function is inlined).

Rule 1.   If performance is not enough buy a bigger box.

Rule 2.  If performance is not enough profile.

Questions about inlining are largely redundant in a modern computer
program.  Most of the time is spent waiting for harddisk access.

Days when converting 'PIC 9(09)' to 'PIC 9(09) COMP-3' saves 45 minutes
of run time are now gone.  If you don't understand what I have just said
then you have started programming in the last 10 years :-)

Lately I find myself writing code that has to share time & memory with the home users' "real" application (audio recording software), and everything's in memory.

Even there, a few CPU instructions here or there aren't going to make or break things, and in my experience, choosing "minimize size" is better than "maximize speed". But still, it's fun to think about these things.

Adelle.






_______________________________________________
coders mailing list
coders@slug.org.au
http://lists.slug.org.au/listinfo/coders

Reply via email to