4 ms·
You should consider performance/efficiency at all stages. And that consideration should be based on an informed feedback loop where assumptions are validated an
by llm_nerd 2y ago
You should consider performance/efficiency at all stages. And that consideration should be based on an informed feedback loop where assumptions are validated and proven empirically. What developers think are performance patterns often wildly diverges from reality.
The scenario I gave is when there are performance problems with a developed project (you know -- where a profiler is actually usable, after they already decided on an approach and implemented code) and the developer is effectively guessing at the issues, doing iterative optimize-this-part then run and see if it's fixed pattern. This is folly 100% of the time. Yet it's a common pattern.
- d0mine 2y agoMeasurement is a necessary step but if you don’t think through the expected results first then it is easy to rationalize any results that a profiler provides (easy to lye to yourself). I like the solid approach described in Understanding Software Dynamics by Richard L. Sites