code has a bigger upfront cost but after the initial investment it's all profit.
Servers can also go down, but the 100x faster code will remain the same.
Servers can also go down, but the 100x faster code will remain the same.
But I agree with the sentiment. In a code base where performance matters, that level of optimization would often be impractical.
Otherwise we would all be writing assembler.
Humans are way, way more expensive than servers in almost every case. Exceptions might be small pieces of code ran by millons of devices, but that's far from being the common case.