from Hacker News

Patching Rails Performance

by strzalek on 8/6/15, 4:39 PM with 26 comments

  • by jordanthoms on 8/7/15, 1:43 AM

    Speed improvements are always nice, but the big improvement for us came from moving from 1x and 2x dynos to Performance dynos. CPU performance on the 1x and 2x dynos was highly inconsistent, and would suddenly become abysmal for periods of 5-10 minutes or more - and due to random routing, the backed up dyno would keep on getting requests until the requests start timing out.
  • by schneems on 8/6/15, 8:51 PM

    I wrote the patch and the article, do you have any questions related to either?
  • by matthewcford on 8/7/15, 1:26 AM

    A lot of time according to new relic is spent in Middleware/Rack/ActionDispatch::Routing::RouteSet#call on one of our Rails apps on Heroku. Any ideas on what might be the cause? (I'm within memory limits standard-2x)
  • by kentor on 8/6/15, 9:22 PM

    I've stopped doing ruby dev, but boy do I not miss mutable strings. Javascript/Python's got that part right. String interning is a godsend.