3 ms·
Honestly you don't even have to think about optimization to make your software not horrifically slow on modern hardware, instead you have to think about non-pes
by AnIdiotOnTheNet 5y ago
Honestly you don't even have to think about optimization to make your software not horrifically slow on modern hardware, instead you have to think about non-pessimization. Simply put, avoid needless complexity and gratuitous waste in the first place.
See Refterm Lecture Part 1 - Philosophies of Optimization by Casey Muratori:
https://youtu.be/pgoetgxecw8 https://youtu.be/pgoetgxecw8
- bodge5000 5y agoOh absolutely, you can write perfectly fine software just by being considerate to what you're writing and never have to even consider optimisation. This is one area where premature optimisation becomes a problem for me; I know this, and I prematurely optimise anyway (though I am working turning that down a bit). For me, another widely held belief (although far less so than the root of all evil) is also somewhat the cause of this problem, particularly the issues you're talking about, this idea that if a library exists for something you shouldnt waste time rewriting it, which ends up with projects stacked to the brim with dependencies. Of course sometimes it is more efficient to use a library, I don't intend to rewrite perlin noise for example, but it shouldnt be your first choice I don't think.