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: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Fotis Chatzinikos
Sent: Thursday, March 19, 2009 4:46 AM
To: flexcoders@yahoogroups.com
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 
<gosm...@adobe.com<mailto:gosm...@adobe.com>> 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: flexcoders@yahoogroups.com<mailto:flexcoders@yahoogroups.com> 
[mailto:flexcoders@yahoogroups.com<mailto:flexcoders@yahoogroups.com>] On 
Behalf Of Romeo Obane
Sent: Wednesday, March 18, 2009 8:18 PM
To: flexcoders@yahoogroups.com<mailto:flexcoders@yahoogroups.com>
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 
<aha...@adobe.com<mailto:aha...@adobe.com>> 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: flexcoders@yahoogroups.com<mailto:flexcoders@yahoogroups.com> 
[mailto:flexcoders@yahoogroups.com<mailto:flexcoders@yahoogroups.com>] On 
Behalf Of fotis.chatzinikos
Sent: Wednesday, March 18, 2009 9:55 AM
To: flexcoders@yahoogroups.com<mailto:flexcoders@yahoogroups.com>
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
fotis.chatzini...@gmail.com<mailto:fotis.chatzini...@gmail.com>,




Reply via email to