3 ms·
I guess it's just semantics, but if you can think of two ways you could do something and both are about the same in terms of time-to-implement, readability, com
by jmull 8y ago
I guess it's just semantics, but if you can think of two ways you could do something and both are about the same in terms of time-to-implement, readability, complexity, etc., but one is probably faster... then I wouldn't call it an optimization. That's just writing good code in the first place.
- TeMPOraL 8y agoIt is, but people still use the "premature optimization" adage as an excuse to avoid thinking about performance at all. As GP is saying, at any given complexity and readability level, you can write the code in a more and less performant way. Writing more efficient code takes just a) willingness to consider performance, and b) willingness to actually learn your toolset as you use it.
- srean 8y agoYou wouldn't but the sad fact is that there are many cargo culters and trigger happy advisors who would think exactly that.