Skip to content

Instantly share code, notes, and snippets.

Created Jul 17, 2012
What would you like to do?
ruby-1.9.3-p194 cumulative performance patch.

Patched ruby 1.9.3-p194 for 30% faster rails boot

What is this?

This script installs a patched version of ruby 1.9.3-p194 with patches for boot-time performance improvements (#66 and #68), and runtime performance improvements (#83 and #84). It also includes the new backported GC from ruby-trunk.

Huge thanks to funny-falcon for the performance patches.

What I need?

  • rbenv
  • ruby-build
  • autoconf

How do I use it?

curl | sh
before_install_package() {
local package_name="$1"
if [[ "$package_name" == *ruby-1.9.3-p194* ]]; then
curl | patch -p1
} >&4 2>&1
install_package "yaml-0.1.4" ""
install_package "ruby-1.9.3-p194" "" autoconf standard
curl$ > /tmp/$VERSION-perf
CC=/usr/bin/clang rbenv install /tmp/$VERSION-perf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment