aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Minar2012-10-17 15:36:48 -0700
committerIgor Minar2012-10-17 20:20:53 -0700
commitd57abdb3f7d4469c5cba0efdd762c09d0678013e (patch)
tree221be48b4cd2936488a64343b2f0e08cf0f5681c
parent4050e894467af7af47dd00dd28c0fba80f6ac82d (diff)
downloadangular.js-d57abdb3f7d4469c5cba0efdd762c09d0678013e.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)} \