Four Kinds of Optimisation (2023)
tratt.net
Four Kinds of Optimisation (2023)
1–10 of 16 posts
Re: Four Kinds of Optimisation (2023)
#2Re: Four Kinds of Optimisation (2023)
#3Re: Four Kinds of Optimisation (2023)
#4Re: Four Kinds of Optimisation (2023)
#5The first thing I thought when I saw your code was “what about optimizing for readability?”
Re: Four Kinds of Optimisation (2023)
#6The usual culprit is "premature modularization", where code that is used in one place and is never going to be extended is nonetheless full of indirections.
Re: Four Kinds of Optimisation (2023)
#7This can include more advances VM or using other advanced problem oriented systems like databases or problem solvers.
Re: Four Kinds of Optimisation (2023)
#8This is missing the 5th and most important optimization technique: don't pessimize the code in the first place. The usual culprit is "premature modularization", where code that is used in one place and is never going to be extended is nonetheless full of indirections.
Re: Four Kinds of Optimisation (2023)
#9Recent discussion on the follow-up, "The Fifth Kind of Optimisation": https://news.ycombinator.com/item?id=43555311
Re: Four Kinds of Optimisation (2023)
#10This deserves to be a headline in most optimisation discussions. Fast enough or small enough is often all that matters, start there.