3 ms·
They keep telling you: > "We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil. But they alway
by alecco 12y ago
They keep telling you:
> "We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil.
But they always omit the following part of the quote:
> Yet we should not pass up our opportunities in that critical 3%. A good programmer will not be lulled into complacency by such reasoning, he will be wise to look carefully at the critical code, but only after that code has been identified
- EugeneOZ 12y agoThe issue is not in 3%. Whole system should be designed with "performance in mind". It's architectural decisions, not just 3% of code, hidden in few fancy functions. Web app should be designed to insert caching layer or replace logging tool or error handling or email sending. When all is hardcoded into one huge monolith "it works", it will not be so important where are these slow 3%. And when each piece is optimized to be as performant as possible, only then whole app will be awesomely performant. It's not always necessary on the beginning, but to make it possible, each part should be replaceable to more performant and whole architecture should be designed "with performance in mind".