Skip to content

Instantly share code, notes, and snippets.

@costis
Created November 22, 2012 15:34
Show Gist options
  • Select an option

  • Save costis/4131738 to your computer and use it in GitHub Desktop.

Select an option

Save costis/4131738 to your computer and use it in GitHub Desktop.
Make ruby fly
# From:http://alisnic.net/blog/making-your-ruby-fly/
# into ~/.rvmrc
rvm_configure_env=(CFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer")
# and then
rvm install 1.9.3-turbo --patch falcon
# or better
rvm get head
rvm reinstall 1.9.3-p327 --patch falcon
# also try with CFLAGS="-march=native -O3", this should be the fastest, gcc will autodetect processor features
rvm_configure_env=(CFLAGS="-march=native -O3 -pipe -fomit-frame-pointer")
rvm get head && rvm reinstall 1.9.3-p194 --patch falcon --force-autoconf -j 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment