Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- case "$rvm_ruby_string" in
- ree*)
- # 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_GC_MALLOC_LIMIT=200000000
- export RUBY_HEAP_MIN_SLOTS=500000
- export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1
- export RUBY_HEAP_SLOTS_INCREMENT=250000
- echo "GC TWEAKED!"
- ;;
- *)
- unset RUBY_HEAP_MIN_SLOTS RUBY_HEAP_SLOTS_INCREMENT RUBY_HEAP_SLOTS_GROWTH_FACTOR RUBY_GC_MALLOC_LIMIT RUBY_HEAP_FREE_MIN
- ;;
- esac
Add Comment
Please, Sign In to add comment