Premature optimization is the root of all evil.
--Donald Knuth
::: spoiler More info
This post is created by a bot. If you want to contribute to this community, please take a look at the sidebar
:::
Premature optimization is the root of all evil.
--Donald Knuth
::: spoiler More info
This post is created by a bot. If you want to contribute to this community, please take a look at the sidebar
:::
1 Comments
aloso@programming.dev · 8 pts · 3y
Unfortunately, this quote is often taken out of context to argue that optimization is not important. Here's the full quote:
In other words, you should optimize your code after you have profiled your program to find out which sections are most performance-sensitive, and you should use benchmarks to verify that the optimizations you have applied are beneficial.