Hacker News new | ask | show | jobs
by maercsrats 5435 days ago
There is a talk by Aaron Patterson from RailsConf talking about why rails 3.1 is slower than rails 3 and rails 2.3. Basically the rack pipeline is getting deeper. Because rack is so simplistic every request requires you going through that pipeline and back again.

His solution is to break up the pipeline into 3 separate types: generators, filters (for response data), and lifecycle hooks. Doing this brought the speed back up to rails 2.3 speeds and a bit faster in some instances. But those were early numbers.

You can see his talk here: http://www.youtube.com/watch?v=kWOAHIpmLAI

The interesting stuff happens around the 20 min. mark.

Overall, there are a lot of people who want to make ruby better and faster. Rubinius, Jruby and MacRuby are all examples. There are also people who want to make Rails faster. They are examining the slower parts (active record, rack, etc) and working to make it better.

1 comments

I don't think that's related. Aaron's talking about request handling speed; the people above you are talking about boot speeds.