Skip to content

Instantly share code, notes, and snippets.

@phlipper
Created August 13, 2011 06:32
Show Gist options
  • Save phlipper/1143542 to your computer and use it in GitHub Desktop.
Save phlipper/1143542 to your computer and use it in GitHub Desktop.
~/.rvm/hooks/after_use_gc
case "$rvm_ruby_string" in
*ree*|*ruby-1.9.2*)
export RUBY_HEAP_MIN_SLOTS=1000000
export RUBY_HEAP_SLOTS_INCREMENT=1000000
export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1
export RUBY_GC_MALLOC_LIMIT=1000000000
export RUBY_HEAP_FREE_MIN=500000
export RUBY_FREE_MIN=$RUBY_HEAP_FREE_MIN
;;
*)
unset RUBY_HEAP_MIN_SLOTS RUBY_HEAP_SLOTS_INCREMENT RUBY_HEAP_SLOTS_GROWTH_FACTOR RUBY_GC_MALLOC_LIMIT RUBY_HEAP_FREE_MIN RUBY_FREE_MIN
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment