News for hackers. Stuff that matters.
Re:“Clean” Code, Horrible Performance by ilyt on Tuesday February 28, 2023 @04:55PM (#34975447)
Eh, that heavily depends on language and dataset you're working with. I've seen "simple" data with some fat thing like RoR on top of it having 10x the latency of the underlying database after all the ORMing.
Re:“Clean” Code, Horrible Performance by ajmurmann on Tuesday February 28, 2023 @06:45PM (#34976599)
Most of my experience with this actually comes from RoR. I worked on one so where rendering slowed everything down to a grind, but more often than not it was making Yu noptimized queries, too many queries, inefficient calls to other services. I used to work as a consultant, so this was true for quite a few apps. However, I also usually was the person most interested in relational databases and my view might have selection bias.
Re:“Clean” Code, Horrible Performance by whstl on Tuesday February 28, 2023 @07:25PM (#34977013)
I have a similar experience. Also, for the longest time Rails was also incredibly slow at generating JSON, of all things. JBuilder [1] was a few orders of magnitude slower than using .to_json directly or other libraries.

[1] https://github.com/rails/jbuilder, maintained by DHH and the Rails team. AFAIR, the "official" JSON serialization DSL.