Oh, yeah. Don't mind the sizes. They never add up. The main question is whether the set of classes is the same (they might be in different order though). Sounds like it isn't. Might be a bug. Try a simpler case with an external library and see what you get.
Alex Harui Flex SDK Developer Adobe Systems Inc.<http://www.adobe.com/> Blog: http://blogs.adobe.com/aharui From: [email protected] [mailto:[email protected]] On Behalf Of Fotis Chatzinikos Sent: Friday, March 20, 2009 6:55 AM To: [email protected] Subject: Re: [flexcoders] swf file size changes from build to build? Alex, I never used the link-report option before but what i get makes no sense: clean build: link-report file size 94KB - no references to my custom components or external libraries - away3d,etc... total symbols: 177 - total external symbols: 118 - size (bytes) 499601 - optimized size: 277159 inc-build: link-report file size 403KB - with references to all my custom components and libraries... total symbols: 761 - total external symbols: 242 - size (bytes) 2251166 - optimized size: 1358188 Both swfs play normally, both (optimized) sizes are wrong. In the first build the optimized size is way lower than the output (880K), in the second build the optimized size is higher than the output swf (which is 1080K) On Fri, Mar 20, 2009 at 6:41 AM, Alex Harui <[email protected]<mailto:[email protected]>> wrote: Can you guys compare link-reports of the two builds? Alex Harui Flex SDK Developer Adobe Systems Inc.<http://www.adobe.com/> Blog: http://blogs.adobe.com/aharui From: [email protected]<mailto:[email protected]> [mailto:[email protected]<mailto:[email protected]>] On Behalf Of Fotis Chatzinikos Sent: Thursday, March 19, 2009 10:01 AM To: [email protected]<mailto:[email protected]> Subject: Re: [flexcoders] swf file size changes from build to build? Peter, i think you got it! After a clean build the swf size is 886K on the second build it becomes 1086KB On Thu, Mar 19, 2009 at 4:42 PM, Peter Farland <[email protected]<mailto:[email protected]>> wrote: I would have to agree with Maciek as on seeing the file size differences I was skeptical it would just be timestamps causing the difference (although the point that the consecutive compiles will not result in the exact same bytes is a valid one). Fotis, I'd be interested if you could investigate whether forcing a clean first before building results in the same file size, where as "incremental" compilations lead to the larger variants in file size that you're seeing? Have you tried running each differently sized SWF to see if they behave or look different? A guess at what may cause something like this would be a bug during prelink where perhaps a different set of style-mixins are getting linked in. If you could save the different sized SWFs you could use something like SWF Dump to look at the contents to see what was different. Pete From: [email protected]<mailto:[email protected]> [mailto:[email protected]<mailto:[email protected]>] On Behalf Of Fotis Chatzinikos Sent: Thursday, March 19, 2009 4:46 AM To: [email protected]<mailto:[email protected]> Subject: Re: [flexcoders] swf file size changes from build to build? Hi Gordon, I meant that changes are minimal (I am not adding or removing a 3d library or any embedded fonts). Adding a couple of actionscript lines / removing a couple of lines resulted in variations of about 200K in swf size... Maybe its something to do with builder? Sometimes it cleans better than others? I do not know what is going on but in the last couple of days I was adding new bits of code which at some point resulted in the small file - I said cool! I possibly removed a couple of references to some unused classes or something similar and then after a couple of compile/build the size went up again... I just thought of asking on the forum in case somebody else had seen something similar... Thanks for the reply. Its not a big problem, but still 200K is about 15-20% file size change... On Thu, Mar 19, 2009 at 5:52 AM, Gordon Smith <[email protected]<mailto:[email protected]>> wrote: I think Alex was joking. He was simpily confirming that you don't get the same size each time you build (although I'm surprised by the size of the variation). What did you mean by "myIntVar = 1 instead of 0"? The SWFs should execute exactly the same. - Gordon From: [email protected]<mailto:[email protected]> [mailto:[email protected]<mailto:[email protected]>] On Behalf Of Romeo Obane Sent: Wednesday, March 18, 2009 8:18 PM To: [email protected]<mailto:[email protected]> Subject: Re: [flexcoders] swf file size changes from build to build? I'm quite puzzled of what you've said about right date and time, what do you mean by that? Is the right date and time affects the swf file size? On Thu, Mar 19, 2009 at 5:47 AM, Alex Harui <[email protected]<mailto:[email protected]>> wrote: Just wait for the right date and time. SWFs are zipped and there is some date/time bytes in the SWF that affect the compression table. No two builds are the same. Alex Harui Flex SDK Developer Adobe Systems Inc.<http://www.adobe.com/> Blog: http://blogs.adobe.com/aharui From: [email protected]<mailto:[email protected]> [mailto:[email protected]<mailto:[email protected]>] On Behalf Of fotis.chatzinikos Sent: Wednesday, March 18, 2009 9:55 AM To: [email protected]<mailto:[email protected]> Subject: [flexcoders] swf file size changes from build to build? Hi, I am working on a project where the debug build is about 1MB. The problem is that from build to build i have seen the resulting swf changing sizes. The builds do not add or remove any code, its just minor changes ie myIntVar = 1 instead of 0. Last 5 builds: 1. 1086 KB 2. 1086 KB 3. 894 KB 4. 933 KB 5. 1087 KB I am not sure yet if this happens in the release build as well... Anybody seen that before? PS: Else i will keep rebuilding until i get the smaller possible size to publish... (just joking) -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation [email protected]<mailto:[email protected]>, -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation [email protected]<mailto:[email protected]>, -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation [email protected]<mailto:[email protected]>,

