Skip to content

Instantly share code, notes, and snippets.

@nicholas
Created January 23, 2012 19:59
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 nicholas/1665233 to your computer and use it in GitHub Desktop.
Save nicholas/1665233 to your computer and use it in GitHub Desktop.
Installing Falcon's Ruby 1.9.3 Performance Patches
# Reference: https://gist.github.com/1658360
curl https://raw.github.com/gist/1658360/afd06eec533ad0140011bdaf652e6cd82eedf7ec/cumulative_performance.patch > $rvm_path/patches/ruby/1.9.3/p0/falcon.patch
rvm install 1.9.3 -n fast --patch falcon
rvm gemset copy 1.9.3-p0@global 1.9.3-p0-fast@global
rvm gemset copy 1.9.3-p0@plustrac 1.9.3-p0-fast@plustrac
bundle
# If you were doing this for another project, you'd probably want your .rvmrc to look something like this:
if [ "$RAILS_ENV" == "development" -o "$RAILS_ENV" == "" ]
then
rvm use 1.9.3-p0-fast@plustrac
else
rvm use 1.9.3-p0@plustrac
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment