JRuby startup time speedup
update your ~/.rvm/hooks/after_use_jruby_opts
#!/usr/bin/env bash
\. "${rvm_path}/scripts/functions/hooks/jruby"
export PROJECT_JRUBY_OPTS="-J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -J-noverify -X-C"
if [[ "${rvm_ruby_string}" =~ "jruby" ]]
then
jruby_options_append "${PROJECT_JRUBY_OPTS[@]}"
else
jruby_options_remove "${PROJECT_JRUBY_OPTS[@]}"
jruby_clean_project_options
fi
chmod +x ~/.rvm/hooks/after_use_jruby_opts
Written by Rex Chung
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Jruby
Authors
Related Tags
#jruby
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#