With things like AWS and DigitalOcean these days, performance is cheaper than ever.
It’s insane how many times I see developers spending two weeks at $5k / week in salary to optimize a piece of code that an additional $40 / month server would solve.
The example above isn’t uncommon and the return on investment there would take more than 20 years.
I’m not saying build non-performant code but the trade offs are real and there are always more important problems to solve.
And if you really need performance for a particular process, take a look at Godfrey Chan’s talk on using Rust as a compiled, highly performant option with Rails (via Helix, no less), which gives you the best of both worlds.
Be smart, use your time and happiness wisely.