Flex project: swf file size increased with IDEA X 98.382

After updating from IDEA X 98.311 to IDEA X 98.382 the file sizes of my compiled swfs in an AIR project increased without changing any project settings or code.

Module 1: before 342KB, after  1,49MB
Module 2: before 670KB, after 2,6MB (depends on Module 1)
Module 3: before 1,31MB, after 2,6MB (depends on Module 1 + 2)

Does anyone have a clue what the reason could be?

8 comments
Comment actions Permalink

Can you please try 3 different compilers (File | Settings | Compiler | Flex Compiler) and check if swf size is similar in all cases?

0
Comment actions Permalink

Built in:
Module 1 swf: 1.571.282 Bytes
Module 2 swf: 1.371.447 Bytes
Module 3 swf: 2.736.855 Bytes

Flex Compiler
Module 1 swf: 1.571.299 Bytes
Module 2 swf: 1.371.455 Bytes
Module 3 swf: 2.736.853 Bytes

Mxmlc/compc
Module 1 swf: 1.570.176 Bytes
Module 2 swf: 1.371.453 Bytes
Module 3 swf: 2.736.858 Bytes

no big difference

sorry forgot the 3rd

0
Comment actions Permalink

reopend project in IDEA X 98.311

built in:
Module 1 swf: 368.442 Bytes
Module 2 swf: 637.609 Bytes
Module 3 swf: 1.381.179 Bytes

0
Comment actions Permalink

Hm.. I don't remember any changes in this area between 98.311 and 98.382 that could affect all 3 compilers...
Please make sure that 'Include debugging info' is in the same state in both IDEAs (File | Settings | Compiler | Flex Compiler). If it doesn't give the clue then please look at compiler command line (printed in Messages tool window, starts from mxmlc) and at generated config file content (it is in system temp directory, file name is printed as part of compiler command line in Messages tool window).

0
Comment actions Permalink

And could you please also check size of SWF with 2 other compilers using IDEA 98.311?

0
Comment actions Permalink

debugging infos were both always checked

IDEA X 98.311

Built in:
> small files

Flex Compiler
> big files

Mxmlc/compc
> big files

0
Comment actions Permalink

Yep, there was a bug in built-in compiler shell in IDEA 98.311. It always used -static-link-runtime-shared-libraries as it is set in <Flex SDK>/frameworks/flex-config.xml. It is set to false in Flex SDK 4.x, so a lot of classes are not compiled into your swf, but downloaded at runtime instead. Looks like you have overridden default option in IDEA's Flex Compiler Settings.

0
Comment actions Permalink

ok, setting -static-link-runtime-shared-libraries=false in additional compiler settings in IDEA X 98.382 results in the samller file size

I need to read more about this option @Adobe...

thx for clarification

0

Please sign in to leave a comment.