News for hackers. Stuff that matters.
Re:Performance bugs – the dark matter of programming bugs by btilly on Wednesday March 22, 2017 @03:11PM (#13933792)
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.

There are no comments on this comment yet.