5 ms·
I always though that what that one quote meant was: measure, then optimize. It's no use tuning the hell out of a function that hardly features in your profiler
by JulianMorrison 17y ago
I always though that what that one quote meant was: measure, then optimize. It's no use tuning the hell out of a function that hardly features in your profiler results.
- silentbicycle 17y agoAgreed, though it would be clearer if the quote went, "Uninformed optimization..." or "Doing optimization without measuring first...".
- xsmasher 17y agoThat, and also optimizing code that later gets thrown out entirely because requirements or other factors change. There's no benefit to optimizing code that goes in the bit bucket.
- cschep 17y agoYes, or even just figure out HOW (you're going) to measure it.