Skip to content

Commit 8827185

Browse files
committed
Better startup times through --dev
Opposed to what I said in rspec/rspec-core#2444 there is something we can do, I just underestimated its effect. There is `--dev` (see https://github.com/jruby/jruby/wiki/Improving-startup-time#use-the---dev-flag). Locally for the rspec-core --bisect spec this brought the runtime down from 33 to 36 seconds to 21 seconds! It also encompasses disabling invoke dynamic already, so no need for that. It is opposed to server mode that was used however, server mode targets peak performance at the cost of bigger startup and warmup times and is usually intended for running on the server/ benchmarks. It was introduced for no reason apparent to me in bc0b976 and I think --dev fits the use case better and is closer to what most peeps probably run either way. Other changes I did: * collapsed all the envs into one, it shouldn't hurt the other elements in the matrix, we lose the compat version 2.0 but that doesn't seem too important atm if it is please tell me * updated the JRuby version to the most current one
1 parent 90a45ef commit 8827185

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

travis/.travis.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,18 @@ rvm:
2323
- ruby-head
2424
- ree
2525
- rbx
26+
- jruby
27+
- jruby-head
28+
- jruby-18mode
29+
- jruby-9.1.12.0
2630
matrix:
27-
include:
28-
- rvm: jruby
29-
env: JRUBY_OPTS='--server -Xcompile.invokedynamic=false -Xcompat.version=2.0'
30-
- rvm: jruby-head
31-
env: JRUBY_OPTS='--server -Xcompile.invokedynamic=false'
32-
- rvm: jruby-18mode
33-
env: JRUBY_OPTS='--server -Xcompile.invokedynamic=false'
34-
- rvm: jruby
35-
env: JRUBY_OPTS='--server -Xcompile.invokedynamic=false'
36-
- rvm: jruby-9.1.2.0
37-
env: JRUBY_OPTS='--server -Xcompile.invokedynamic=false'
3831
allow_failures:
3932
- rvm: jruby-head
40-
env: JRUBY_OPTS='--server -Xcompile.invokedynamic=false'
4133
- rvm: ruby-head
4234
- rvm: rbx
4335
fast_finish: true
36+
env:
37+
- JRUBY_OPTS='--dev'
4438
branches:
4539
only:
4640
- master

0 commit comments

Comments
 (0)