Skip to content

Commit

Permalink
JariBakken: Add some JVM / JRuby flags to improve 'go' startup time.
Browse files Browse the repository at this point in the history
-d32 forces the 32-bit client VM
-X-C turns off JRuby's JIT compiler

This shaves 9 seconds off `./go -T` on my machine.

r13201
  • Loading branch information
jarib committed Aug 2, 2011
1 parent e3a5a55 commit 537272f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash

java -jar third_party/jruby/jruby-complete.jar -S rake $*
java -d32 -jar third_party/jruby/jruby-complete.jar -X-C -S rake $*
3 changes: 2 additions & 1 deletion go.bat
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
@echo off
java -jar third_party\jruby\jruby-complete.jar -S rake %*

java -d32 -jar third_party\jruby\jruby-complete.jar -X-C -S rake %*

0 comments on commit 537272f

Please sign in to comment.