程序员的故乡

 

“过早优化是万恶之源”这句话的源头

来自于一篇大神的论文,而且原意没有一句话那么简单。

Premature optimization is the root of all evil

Programmers waste enormous amounts of time thinking about, or worrying about, the speed of noncritical parts of their programs, and these attempts at efficiency actually have a strong negative impact when debugging and maintenance are considered. We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil.

In established engineering disciplines a 12 % improvement, easily obtained,
is never considered marginal.

posted on 2023-09-10 21:45  程鑫  阅读(10)  评论(0编辑  收藏  举报

导航