Last active
August 29, 2015 14:19
-
-
Save ivanxuu/d8335e9099f4625a99ee to your computer and use it in GitHub Desktop.
jruby options for faster startup time
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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