premature optimization ties you into decisions
This commit is contained in:
parent
b8463bafb5
commit
2de923ef2e
@ -75,6 +75,10 @@ is genuinely too slow, and there is some expectation that it can be made
|
||||
faster while maintaining correctness, robustness, and clarity."
|
||||
-- The Practice of Programming, Kernighan and Pike
|
||||
|
||||
Premature optimization can also hurt you by tying you into certain decisions.
|
||||
The optimized code can be harder to modify if requirements change and harder to
|
||||
throw away (sunk-cost falacy) if needed.
|
||||
|
||||
[BitFunnel performance estimation](http://bitfunnel.org/strangeloop) has some
|
||||
numbers that make this trade-off explicit. Imagine a hypothetical search
|
||||
engine needing 30,000 machines across multiple data centers. These machines
|
||||
|
Loading…
Reference in New Issue
Block a user