RSS Feed/News Slow add-on release builds with local Closure Compiler

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
34,360
Points
823

Reputation:

With a local Closure Compiler configured xf-addon:build-release starts a separate JVM for each JavaScript file in the minify list in build.json. Building add-on with 34 JavaScript files took 60+ seconds on Windows

Setting -XX:TieredStopAtLevel=1 reduces total build time by half

Also running Closure Compiler in a single JVM per release build could eliminate repeated JVM startup while still compiling each file independently and more significant reduce total build time

Continue reading...
 
Status
Not open for further replies.
Top