aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Minar2012-10-17 15:36:48 -0700
committerIgor Minar2012-10-17 15:36:51 -0700
commit3bd95dbb1a502575ae8250f49190f153442054eb (patch)
tree0df93d1f44c00e9d2e949f4e0d9bd0919be85175
parentc959fa4fe80d251ed5fc326943416c8ab369bd0b (diff)
downloadangular.js-3bd95dbb1a502575ae8250f49190f153442054eb.tar.bz2
chore(Rakefile): tune JVM for closure compiler
Using the client VM and forcing 32bit mode gives us huge perf boost. before: reali 0m8.173s user 0m39.984s sys 0m1.408s after: real 0m3.000s user 0m12.687s sys 0m0.852s
-rw-r--r--Rakefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index 72509b68..45b7be94 100644
--- a/Rakefile
+++ b/Rakefile
@@ -290,7 +290,10 @@ def closure_compile(filename)
min_path = path_to(filename.gsub(/\.js$/, '.min.js'))
- %x(java -jar lib/closure-compiler/compiler.jar \
+ %x(java \
+ -client \
+ -d32 \
+ -jar lib/closure-compiler/compiler.jar \
--compilation_level SIMPLE_OPTIMIZATIONS \
--language_in ECMASCRIPT5_STRICT \
--js #{path_to(filename)} \