u/keloidoscopein r/programming • Recommends
On “Ruby might be faster than you think”
Some great stories about Twitter scalability were told on the Oxide and Friends podcast, featuring core Solaris engineers and the co-founder of Twitter's then cloud host, Joyent.
There is one story about Twitter taking 100ms of CPU to serve a request, because Rails was using an exception to exit from a loop that was in code executing 434 stack frames deep, and the profiling showed huge amounts of time spent in bcopy, grabbing all those stack frames as part of exception handling to simply... exit a loop.
Whole thing is gold but skip to 25:20 for that specific story:
link to this video