Rails initializes extremely slow on ruby 1.9.1

Posted by Ben Johnson on Stack Overflow See other posts from Stack Overflow or by Ben Johnson
Published on 2010-05-26T14:50:38Z Indexed on 2010/06/08 20:42 UTC
Read the original article Hit count: 410

Filed under:
|
|
|
|

I just got my rails 2.3.8 app running on ruby 1.9.1. To get into the console, start the webserver, anything that initializes rails, takes 3 - 4 times longer in ruby 1.9 than in ruby 1.8.7. I'm using ruby version managers so I can easily switch between ruby 1.9 and ruby 1.8.7. The speed difference happens in both production and development. I want to use 1.9 because its must faster once everything is running, but the startup time is so bad the app is timing out on Heroku on the first request.

Any ideas why ruby 1.9 would be 3 - 4 times slower? I can't figure it out for the life of me.

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about ruby