4 ms·
wrong. Every program that has any need for optimization will quickly turn into a death by a thousand cuts. There is no right or wrong level of premature optim
by MrStonedOne 4y ago
wrong.
Every program that has any need for optimization will quickly turn into a death by a thousand cuts.
There is no right or wrong level of premature optimization, it all comes down to how much time it takes to code it to be more performant. if it takes a tiny amount of time, do so, even if you get little gains. if it takes twice as long to make it more performant, only do so if necessary or results in more than 50% gains.