Michael Landis
1 min readOct 15, 2020

--

A Textbook Example of When Not To Optimize.

Your first example, gaining 40% by combining lines, was a great example. The second optimization made the code unreadable and only gave you 4% more.

There is a lot of damage done in premature optimization. This was a great opportunity lost, to warn against excessive optimization.

--

--

Michael Landis
Michael Landis

Written by Michael Landis

Front-end web developer, React enthusiast, vagabond.

Responses (1)