Incremental compilation in Flex.

I collected some information in Incremental Compilation and iam giving it here.

Incremental compilation means that the compiler inspects your code, determines which parts of the application are affected by your changes, and only recompiles the newer classes and assets (section of bytecode). These sections of bytecode are also referred to as compilation units.

Incremental compilation can help reduce compile time on small applications, but you achieve the biggest gains on larger applications. The default value of the incremental compiler option is true for the Flex Builder application compiler. For the mxmlc command-line compiler, the default is false.

You enable incremental compilation by setting the incremental option to true, as the following example shows: mxmlc -incremental=true MyApp.mxml

As part of the incremental compilation process, the compiler generates
a cache file that lists the compilation units of your application and information on your
application’s structure. This file is located in the same directory as the file that you are
compiling. For example, if my application is called Example.mxml, the cache file is called Example_n.cache, where n represents a checksum generated by the compiler based on compiler configuration. This file helps the compiler determine which parts of your application must be recompiled. One way to force a complete recompile is to delete the cache file from the
directory.

Hope you got the importance of it !.Enjoy the Post.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: