3 ms·
Meh, there is a balance. A performance issue that isn't an issue when doing a single thing can become huge when you're trying to automate doing it many thousan
by btilly 10y ago
Meh, there is a balance.
A performance issue that isn't an issue when doing a single thing can become huge when you're trying to automate doing it many thousands of times. On the other hand there are few ways which are better to obfuscate a code base than to try to optimize performance.
The rule of thumb is don't do anything stupid, but don't particularly worry about efficiency until there is a real need. And then, as Knuth advised, you start with a profiler because the performance problem probably isn't where you think.