Skip to content

Instantly share code, notes, and snippets.

@rick
Created December 15, 2010 22:47
Show Gist options
  • Save rick/742735 to your computer and use it in GitHub Desktop.
Save rick/742735 to your computer and use it in GitHub Desktop.
# in <project>/.rvmrc
rvm ree-1.8.7-2010.01@optimis --create
. ~/bin/ree_settings
# in ~/.rvm/hooks/after_use
. ~/bin/unset_ree
echo "Now using $rvm_ruby_string"
# in ~/bin/ree_settings
export RUBY_HEAP_MIN_SLOTS=1000000
export RUBY_HEAP_SLOTS_INCREMENT=1000000
export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1
export RUBY_GC_MALLOC_LIMIT=400000000
export RUBY_HEAP_FREE_MIN=500000
# in ~/bin/unset_ree
unset RUBY_HEAP_MIN_SLOTS
unset RUBY_HEAP_SLOTS_INCREMENT
unset RUBY_HEAP_SLOTS_GROWTH_FACTOR
unset RUBY_GC_MALLOC_LIMIT
unset RUBY_HEAP_FREE_MIN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment