Note, that the incremental mode does not seem to save much time if you run lzc in one-shot standalone mode, the flex compiler takes considerable time to read in it's cache file from disk. The real speedup is if you use the "fcsh" shell, and the "lzc" and "lcompile" commands to incrementally recompile, since this keeps the flex compiler state in RAM.
Change 20100718-hqm-2 by [email protected] on 2010-07-18 12:36:41 EDT in /Users/hqm/openlaszlo/trunktlf for http://svn.openlaszlo.org/openlaszlo/trunk Summary: fix and update for incremental compiler mode New Features: Bugs Fixed: LPP-9041 Technical Reviewer: max QA Reviewer: ptw Doc Reviewer: (pending) Documentation: Release Notes: Overview: Incremental mode now will delete unused files Details: + The LZX swf10 backend in incremental mode will make sure to delete any .as files that it didn't actuall write on this compile. This gets rid of any deleted class files that might be from previous compiles. + updated the "fcsh" shell, to run the compiler in incremental mode to use it run "fcsh", as shown cd demos/lzpix new-host:lzpix hqm$ fcsh Adobe Flex Compiler SHell (fcsh) Version 4.5.0 build development Copyright (c) 2004-2007 Adobe Systems, Inc. All rights reserved. ... with OpenLaszlo lzc incremental compiler mode lcompile id incremental LZX app compilation lzc arg1 arg2 invoke LZX compiler, takes same args as lzc (fcsh) lzc --runtime=swf10 app.lzx ... (fcsh) lcompile 1 Tests: Compile this main.lzx file in incremental mode: main.lzx: <canvas width="100%" height="80%" > <class name="foo" width="100" height="100" bgcolor="red"/> <class name="bar" width="100" height="100" bgcolor="#cccccc"/> <foo/> <bar/> <class name="idunno" width="100" height="100" bgcolor="#aacccc"/> <idunno/> </canvas> lzc --runtime=swf10 --incremental main.lzx Then comment out the class and instance "idunno", and recompile in incremental mode. lzc --runtime=swf10 --incremental main.lzx And verify that the lzc$class_idunno.as file has been deleted from the temporary build directory Files: M WEB-INF/lib/digest.jar M WEB-INF/lib/fxgutils.jar M WEB-INF/lib/asc.jar M WEB-INF/lib/swfutils.jar M WEB-INF/lib/mxmlc.jar M WEB-INF/lib/mxmlc_ja.jar M WEB-INF/lib/compc.jar M WEB-INF/lib/flexTasks.jar M WEB-INF/lib/adt.jar M WEB-INF/lib/optimizer.jar M WEB-INF/lib/fcsh.jar M WEB-INF/lib/swfdump.jar M WEB-INF/lib/asdoc.jar M WEB-INF/lib/flex-compiler-oem.jar M WEB-INF/lib/copylocale.jar M WEB-INF/lib/fdb.jar M WEB-INF/lib/swcdepends.jar M WEB-INF/bin/fcsh M WEB-INF/lps/server/src/org/openlaszlo/sc/SWF9External.java Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20100718-hqm-2.tar
