Re:“Clean” Code, Horrible Performance
by morelisp on Tuesday February 28, 2023 @04:40PM
(#34975242)
Accidentally super-linear algorithms happen a lot more when you hide stuff behind three layers of interfaces rather than seeing "oh, this uses a list instead of a set".
[ Parent
| on HN ]
Re:“Clean” Code, Horrible Performance
by jstimpfle on Tuesday February 28, 2023 @04:48PM
(#34975333)
True story. And after taking a couple jobs optimizing some messy software modules I've learned to not take those jobs anymore. The only solution is to throw the crap out of the window and to start afresh with a clean understanding of what we want to achieve. A simple and straightforward solution without BS abstractions is not only much faster but also much less bug-ridden.