3 ms·
Yes, true, I agree with you. And performance becomes seen when you scale, or measure power consumption and battery life, or check your memory footprint. I thin
by dahart 10y ago
Yes, true, I agree with you. And performance becomes seen when you scale, or measure power consumption and battery life, or check your memory footprint.
I think what you're saying is congruent with what Michael Abrash is saying, that you address it if it matters. And sometimes it matters.
But almost all the code in the entire world can run faster if someone spends more time optimizing. Anything in any scripting language could be compiled and further optimized. Anything in a compiled language can be further improved, use less memory, access cache faster, etc. etc.
Should it be optimized just because it can? Should it be optimized if it doesn't matter under any human oriented metric, including power consumption? (The author didn't mention power consumption or memory footprint.)
Sometimes it doesn't matter, and looking for it when it doesn't matter is what we call premature optimization. Premature optimization is also a waste of resources, including time and money, and a huge factor in why almost all software arrives late and over budget.