Sha256: f68912845ef550b9086e087fb3bd5900436e4ca3d94e0df153751983ecbd5368
Contents?: true
Size: 688 Bytes
Versions: 2
Compression:
Stored size: 688 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 next unless RUBY_PLATFORM == 'java' # disable JIT since these processes are so short lived ENV['JRUBY_OPTS'] = "-X-C #{ENV['JRUBY_OPTS']}" unless ENV['JRUBY_OPTS'].include? '-X-C' # Faster startup for jruby ENV['JRUBY_OPTS'] = "--dev #{ENV['JRUBY_OPTS']}" unless ENV['JRUBY_OPTS'].include? '--dev' # force jRuby to use client JVM for faster startup times ENV['JAVA_OPTS'] = "-d32 #{ENV['JAVA_OPTS']}" if RbConfig::CONFIG['host_os'] =~ /solaris|sunos/i && !ENV['JAVA_OPTS'].include?('-d32') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
aruba-0.14.1 | lib/aruba/config/jruby.rb |
aruba-0.14.0 | lib/aruba/config/jruby.rb |