3 ms·
> The fastest code is the code that doesn't run at all. I'm taken with Daniel Bernstein's observation that speed is totally unimportant for ~95% of the code ge
by Gibbon1 8y ago
> The fastest code is the code that doesn't run at all.
I'm taken with Daniel Bernstein's observation that speed is totally unimportant for ~95% of the code generated. The reason being it the percentage of the time it runs is a small percentage of the total, or it runs hardly or not at all.
And I'll add that for most programs written, speed isn't important. Because the cost to run them is a small fraction of the cost to write and maintain them.
https://cr.yp.to/talks/2015.04.16/slides-djb-20150416-a4.pdf https://cr.yp.to/talks/2015.04.16/slides-djb-20150416-a4.pdf