What I said is based on solid ground: far too often I have seen that people spend too much time in optimizing things that run quite OK already. I spent lots of time optimizing programs when my computer had 16 kByte of RAM and allowed only 128 bytes of string storage and ran at a snail's pace. Yet I wrote arcadegames for it, in BASIC. But with 4GByte RAM and an 4 core i5 Intel CPU, I rarely find optimizations necessary for my purposes and it uses far less energy than my old rig.
All I wanted to say is that optimization is not a goal in itself.
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
My blog: Imperial DeltronicsIn reply to Re^5: How to optimize CPU and Memory usage?
by CountZero
in thread How to optimize CPU and Memory usage?
by ThelmaJay
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |