mirror of
https://github.com/thoughtbot/factory_bot_rails.git
synced 2022-11-09 11:49:18 -05:00
Speed up performance on jruby
This commit is contained in:
parent
742f38dc9e
commit
b34a554506
1 changed files with 7 additions and 0 deletions
|
@ -5,3 +5,10 @@ PROJECT_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..', '..')).f
|
|||
Before do
|
||||
@aruba_timeout_seconds = 3600
|
||||
end
|
||||
|
||||
Aruba.configure do |config|
|
||||
config.before_cmd do |cmd|
|
||||
set_env('JRUBY_OPTS', "-X-C #{ENV['JRUBY_OPTS']}") # disable JIT since these processes are so short lived
|
||||
set_env('JAVA_OPTS', "-d32 #{ENV['JAVA_OPTS']}") # force jRuby to use client JVM for faster startup times
|
||||
end
|
||||
end if RUBY_PLATFORM == 'java'
|
||||
|
|
Loading…
Add table
Reference in a new issue