4 ms·
> I've often wondered how much energy is wasted due to inefficient code and how much that is a problem as planetary compute scales up. I personally believe the
by timewizard 1y ago
> I've often wondered how much energy is wasted due to inefficient code and how much that is a problem as planetary compute scales up.
I personally believe the majority is wasted. Any code that runs in an interpreted language, JIT/AOT or not, is at a significant disadvantage. On performance measurements it's as bad as 2x to 60x worse than the performance of the equivalent optimized compiled code.
> it feels like a moral imperative to make my code as efficient as possible
Although we're still talking about fractions of a Watt of power here.
> especially when a job will take months to run on hundreds of CPU.
To the extent that I would say _only_ in these cases are the optimizations even worth considering.