Skip to content

Instantly share code, notes, and snippets.

@kpolitowicz
Created May 31, 2011 18:54
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kpolitowicz/1001053 to your computer and use it in GitHub Desktop.
Save kpolitowicz/1001053 to your computer and use it in GitHub Desktop.
Speeding up Rails startup time - 1.9.2-p180
curl https://gist.github.com/raw/999435/fc2718ac3f488ab2341b65dc2ae5c123f8859bff/fast-require-ruby-19.2-p180 > /tmp/require-performance-fix-1.9.2.patch
rvm install 1.9.2-p180 --patch /tmp/require-performance-fix-1.9.2.patch
@kpolitowicz
Copy link
Author

The patch is unofficial and probably breaks few things. However, just run rspecs for a large projects and all passed. Also, startup time cut about 50%!

See: http://rhnh.net/2011/05/28/speeding-up-rails-startup-time. Also thanks to Adam Palmblad for adopting the patch for 1.9.2-p180.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment