Re:Optimizing Your Web App 100x Is Like Adding 99 Servers
by satyrnein on Saturday November 21, 2020 @07:02AM
(#25169227)
Most likely, squeezing 100x performance out of your code will significantly complicate it. For example, you're probably going to be dealing with cache invalidation a lot, and you will pay for that complexity forever, as you try to build new features.
Re:Optimizing Your Web App 100x Is Like Adding 99 Servers
by ficklepickle on Saturday November 21, 2020 @11:01AM
(#25170360)
It depends on the baseline, I suppose. I could see code written (poorly) in a dynamic language to be 100x slower than necessary. Maybe it was fast enough when written, so nobody looked too hard. Inefficient DB queries, excessive IO.
But I agree with the sentiment. In a code base where performance matters, that level of optimization would often be impractical.
Re:Optimizing Your Web App 100x Is Like Adding 99 Servers
by throwaway189262 on Saturday November 21, 2020 @01:27PM
(#25171609)
It depends. In many benchmarks Java is 50X faster than Ruby. So having code 100X as fast can just mean choose a fast language and framework for your project
Re:Optimizing Your Web App 100x Is Like Adding 99 Servers
by midrus on Saturday November 21, 2020 @03:19AM
(#25168473)
That's under the assumption that code doesn't have to be maintained, updated with new features, and that writing it on any programming language has the same cost.
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.
Re:Optimizing Your Web App 100x Is Like Adding 99 Servers
by otabdeveloper4 on Saturday November 21, 2020 @03:46AM
(#25168546)
Assembly is expensive because you have you re-write your code every time your architecture changes.
Re:Optimizing Your Web App 100x Is Like Adding 99 Servers
by makapuf on Saturday November 21, 2020 @04:42AM
(#25168715)
Architecture (x86_64 or arm on mobile) hasnt changed in decades. The way to optimize for it changes in years but you get a slightly less optimized version. Im sure software written in 2007 in assemble for linux pc works now, and fast. I think assembly is not cheap because the language is tiny, offers no abstraction and youre on your own for everything, not because of arch turnover.
Re:Optimizing Your Web App 100x Is Like Adding 99 Servers
by mrmrcoleman on Saturday November 21, 2020 @02:44AM
(#25168377)
If the code has been optimized to the point of being illegible/difficult for others to maintain then, assuming you’d like to update that code at some point, you’ll need to pay for that too.
Servers can also go down, but the 100x faster code will remain the same.