Skip to content

Instantly share code, notes, and snippets.

@ivanxuu
Last active August 29, 2015 14:19
Show Gist options
  • Save ivanxuu/d8335e9099f4625a99ee to your computer and use it in GitHub Desktop.
Save ivanxuu/d8335e9099f4625a99ee to your computer and use it in GitHub Desktop.
jruby options for faster startup time
vim ~/.rvm/hooks/after_use_jruby_custom
#!/usr/bin/env bash
\. "${rvm_path}/scripts/functions/hooks/jruby"
if [[ "${rvm_ruby_string}" =~ "jruby" ]]
then
jruby_options_append "-Xcompile.invokedynamic=false -J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -J-noverify -Xcompile.mode=OFF"
else
jruby_options_remove "${PROJECT_JRUBY_OPTS[@]}"
jruby_clean_project_options
fi
chmod a+x ~/.rvm/hooks/after_use_jruby_custom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment