Sha256: 18633e985836ae6c6dd0d307e51a1e0067ac05661424e6465e942e0a04fc8351
Contents?: true
Size: 817 Bytes
Versions: 10
Compression:
Stored size: 817 Bytes
Contents
require "rbconfig" # ideas taken from: http://blog.headius.com/2010/03/jruby-startup-time-tips.html Aruba.configure do |config| config.before :command do |command| next unless RUBY_PLATFORM == "java" env = command.environment jruby_opts = env["JRUBY_OPTS"] || "" # disable JIT since these processes are so short lived jruby_opts = "-X-C #{jruby_opts}" unless jruby_opts.include? "-X-C" # Faster startup for jruby jruby_opts = "--dev #{jruby_opts}" unless jruby_opts.include? "--dev" env["JRUBY_OPTS"] = jruby_opts if /solaris|sunos/i.match?(RbConfig::CONFIG["host_os"]) java_opts = env["JAVA_OPTS"] || "" # force jRuby to use client JVM for faster startup times env["JAVA_OPTS"] = "-d32 #{java_opts}" unless java_opts.include?("-d32") end end end
Version data entries
10 entries across 10 versions & 3 rubygems