The LzApplication.as file keeps getting modified because we put a new
timestamp on the canvas at each compile. But that
shouldn't slow things down much, in incremental mode, it's just one .as
file.

The speedup in compile time is much more obvious when compiling the webtop
client. In debug mode,  for me it goes from 70 seconds down to 40.

After running once in non-incremental mode to run to swap in JVM, then
running
new-host-6:trunk-diamond hqm$ time  lzc --incremental --runtime=swf10 -g1
jade/client/future/lzmail/main.lzx
Compiling: jade/client/future/lzmail/main.lzx to main.swf10.swf
compiler output is Loading configuration file
/Users/hqm/openlaszlo/trunk-diamond/WEB-INF/frameworks/flex-config.xml
/private/var/folders/xh/xhmdrA41HCKjjiditeqN1k+++TI/-Tmp-/lzswf9/jade/client/future/lzmail/build/main/app.swf
(3348952 bytes)


real    1m13.586s
user    2m15.230s
sys    0m6.737s
new-host-6:trunk-diamond hqm$ time  lzc --incremental --runtime=swf10 -g1
jade/client/future/lzmail/main.lzx
Compiling: jade/client/future/lzmail/main.lzx to main.swf10.swf
compiler output is Loading configuration file
/Users/hqm/openlaszlo/trunk-diamond/WEB-INF/frameworks/flex-config.xml
Recompile:
/private/var/folders/xh/xhmdrA41HCKjjiditeqN1k+++TI/-Tmp-/lzswf9/jade/client/future/lzmail/build/main/LzApplication.as
Reason: The source file or one of the included files has been updated.
Files changed: 1 Files affected: 0
/private/var/folders/xh/xhmdrA41HCKjjiditeqN1k+++TI/-Tmp-/lzswf9/jade/client/future/lzmail/build/main/app.swf
(3360283 bytes)


Subsequent runs, incremental mode
real    0m42.099s
user    1m22.391s
sys    0m5.395s
new-host-6:trunk-diamond hqm$ time  lzc --incremental --runtime=swf10 -g1
jade/client/future/lzmail/main.lzx
Compiling: jade/client/future/lzmail/main.lzx to main.swf10.swf
compiler output is Loading configuration file
/Users/hqm/openlaszlo/trunk-diamond/WEB-INF/frameworks/flex-config.xml
Recompile:
/private/var/folders/xh/xhmdrA41HCKjjiditeqN1k+++TI/-Tmp-/lzswf9/jade/client/future/lzmail/build/main/LzApplication.as
Reason: The source file or one of the included files has been updated.
Files changed: 1 Files affected: 0
/private/var/folders/xh/xhmdrA41HCKjjiditeqN1k+++TI/-Tmp-/lzswf9/jade/client/future/lzmail/build/main/app.swf
(3360139 bytes)


real    0m40.853s
user    1m20.363s
sys    0m5.329s
new-host-6:trunk-diamond hqm$


On Mon, Jan 3, 2011 at 1:05 PM, Max Carlson <[email protected]> wrote:

> The lzc --incremental flag doesn't seem to be working correctly, at least I
> don't see anywhere near a 25% speedup.  It seems like lzc always thinks
> LzApplication.as has changed and forces a recompile even when nothing is
> touched.  Here's a transcript of my shell session:
>
> friendly:components maxcarlson$ time lzc --incremental --runtime=swf10
> demos/ho
> use.lzx
> Compiling: demos/house.lzx to house.swf10.swf
> compiler output is Loading configuration file
> /Users/maxcarlson/openlaszlo/trunk2/WEB-INF/frameworks/flex-config.xml
> /private/var/folders/FC/FCThz41lGP8+9uEgL2SV9E+++TI/-Tmp-/lzswf9/demos/build/house/app.swf
> (329380 bytes)
>
>
> real    0m13.061s
> user    0m33.561s
> sys     0m1.553s
> friendly:components maxcarlson$ time lzc --incremental --runtime=swf10
> demos/ho
> use.lzx
> Compiling: demos/house.lzx to house.swf10.swf
> compiler output is Loading configuration file
> /Users/maxcarlson/openlaszlo/trunk2/WEB-INF/frameworks/flex-config.xml
> Recompile:
> /private/var/folders/FC/FCThz41lGP8+9uEgL2SV9E+++TI/-Tmp-/lzswf9/demos/build/house/LzApplication.as
> Reason: The source file or one of the included files has been updated.
> Files changed: 1 Files affected: 0
> /private/var/folders/FC/FCThz41lGP8+9uEgL2SV9E+++TI/-Tmp-/lzswf9/demos/build/house/app.swf
> (329392 bytes)
>
>
> real    0m10.750s
> user    0m27.171s
> sys     0m1.266s
> friendly:components maxcarlson$ time lzc --incremental --runtime=swf10
> demos/ho
> use.lzx
> Compiling: demos/house.lzx to house.swf10.swf
> compiler output is Loading configuration file
> /Users/maxcarlson/openlaszlo/trunk2/WEB-INF/frameworks/flex-config.xml
> Recompile:
> /private/var/folders/FC/FCThz41lGP8+9uEgL2SV9E+++TI/-Tmp-/lzswf9/demos/build/house/LzApplication.as
> Reason: The source file or one of the included files has been updated.
> Files changed: 1 Files affected: 0
> /private/var/folders/FC/FCThz41lGP8+9uEgL2SV9E+++TI/-Tmp-/lzswf9/demos/build/house/app.swf
> (329383 bytes)
>
>
> real    0m12.071s
> user    0m29.078s
> sys     0m1.401s
> friendly:components maxcarlson$ time lzc --incremental --runtime=swf10
> demos/ho
> use.lzx
> Compiling: demos/house.lzx to house.swf10.swf
> compiler output is Loading configuration file
> /Users/maxcarlson/openlaszlo/trunk2/WEB-INF/frameworks/flex-config.xml
> Recompile:
> /private/var/folders/FC/FCThz41lGP8+9uEgL2SV9E+++TI/-Tmp-/lzswf9/demos/build/house/LzApplication.as
> Reason: The source file or one of the included files has been updated.
> Files changed: 1 Files affected: 0
> /private/var/folders/FC/FCThz41lGP8+9uEgL2SV9E+++TI/-Tmp-/lzswf9/demos/build/house/app.swf
> (329386 bytes)
>
>
> real    0m11.409s
> user    0m28.248s
> sys     0m1.330s
> friendly:components maxcarlson$ touch lib/mouseevents.lzx
> friendly:components maxcarlson$ time lzc --incremental --runtime=swf10
> demos/ho
> use.lzx
> Compiling: demos/house.lzx to house.swf10.swf
> compiler output is Loading configuration file
> /Users/maxcarlson/openlaszlo/trunk2/WEB-INF/frameworks/flex-config.xml
> Recompile:
> /private/var/folders/FC/FCThz41lGP8+9uEgL2SV9E+++TI/-Tmp-/lzswf9/demos/build/house/LzApplication.as
> Reason: The source file or one of the included files has been updated.
> Files changed: 1 Files affected: 0
> /private/var/folders/FC/FCThz41lGP8+9uEgL2SV9E+++TI/-Tmp-/lzswf9/demos/build/house/app.swf
> (329389 bytes)
>
>
> real    0m11.573s
> user    0m26.396s
> sys     0m1.264s
> friendly:components maxcarlson$ time lzc --incremental --runtime=swf10
> demos/ho
> use.lzx
> Compiling: demos/house.lzx to house.swf10.swf
> compiler output is Loading configuration file
> /Users/maxcarlson/openlaszlo/trunk2/WEB-INF/frameworks/flex-config.xml
> Recompile:
> /private/var/folders/FC/FCThz41lGP8+9uEgL2SV9E+++TI/-Tmp-/lzswf9/demos/build/house/LzApplication.as
> Reason: The source file or one of the included files has been updated.
> Files changed: 1 Files affected: 0
> /private/var/folders/FC/FCThz41lGP8+9uEgL2SV9E+++TI/-Tmp-/lzswf9/demos/build/house/app.swf
> (329387 bytes)
>
>
> real    0m11.360s
> user    0m28.080s
> sys     0m1.327s
> friendly:components maxcarlson$ time lzc --incremental --runtime=swf10
> demos/ho
> use.lzx
> Compiling: demos/house.lzx to house.swf10.swf
> compiler output is Loading configuration file
> /Users/maxcarlson/openlaszlo/trunk2/WEB-INF/frameworks/flex-config.xml
> Recompile:
> /private/var/folders/FC/FCThz41lGP8+9uEgL2SV9E+++TI/-Tmp-/lzswf9/demos/build/house/LzApplication.as
> Reason: The source file or one of the included files has been updated.
> Files changed: 1 Files affected: 0
> /private/var/folders/FC/FCThz41lGP8+9uEgL2SV9E+++TI/-Tmp-/lzswf9/demos/build/house/app.swf
> (329388 bytes)
>
>
> On 1/2/11 9:04 PM, Henry Minsky wrote:
>
>> Change hqm-20110103-jjl by [email protected] on 2011-01-03 00:00:08 EST
>>     in /Users/hqm/openlaszlo/trunk-diamond
>>     for http://svn.openlaszlo.org/openlaszlo/trunk
>>
>> Summary: fix for swf10 incremental compilation mode
>>
>> New Features:
>>
>> Bugs Fixed:
>>
>> Technical Reviewer: ptw
>> QA Reviewer: max
>> Doc Reviewer: (pending)
>>
>> Documentation:
>>
>> Release Notes:
>>
>> Overview:
>>
>>
>> Details:
>>
>> The flex incremental compiler mode only works if the app.swf remains from
>> the last compile. We were deleting
>> it on each compile, to incremental mode had no effect.
>>
>> SWF9External.java: preserve old app.swf if compiling in incremental mode
>>
>>
>> Tests:
>>
>> + from lzc:
>>    1. compile an app from lzc, with the "--incremental" flag
>>    2. touch or modify an lzx file, and call lzc again with the
>> --incremental flag. recompile should be significantly faster (25% or more)
>>
>>
>> + via server:
>>    compile an app via the server , check the "incremental" box in the dev
>> console
>>    (or add "lzoptions=incremental" or "lzoptions=incremental(true)" to URL
>> query args)
>>
>>    touch or modify an lzx source file
>>
>>    reload app, recompile should be noticably faster (25% or more)
>>
>>
>>
>> Files:
>> M       WEB-INF/lps/server/src/org/openlaszlo/sc/SWF9External.java
>> M
>> WEB-INF/lps/server/src/org/openlaszlo/servlets/responders/ResponderCompile.java
>> M       WEB-INF/lps/server/src/org/openlaszlo/compiler/Compiler.java
>> M       lps/admin/dev-console.lzx.swf
>> M       lps/admin/dev-console.lzx
>> M       lps/admin/lps/includes/lfc/LFCdhtml.js
>> M       lps/admin/dev-console.lzx.js
>>
>> Changeset:
>> http://svn.openlaszlo.org/openlaszlo/patches/hqm-20110103-jjl.tar
>>
>


-- 
Henry Minsky
Software Architect
[email protected]

Reply via email to