hazymayon / bigbluebutton

Automatically exported from code.google.com/p/bigbluebutton
0 stars 0 forks source link

Optimize client builds #400

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Right now we're pulling the client swf files from the bin directory. This 
results in a client that is much larger than it needs to be because it still 
contains all the debug information and metadata. This can be removed by 
setting the mxmlc compiler debug option to false. When I tested it it reduced 
my client from 2.6mb to 1.15 mb.

Original issue reported on code.google.com by Me.S...@gmail.com on 10 Mar 2010 at 10:55

GoogleCodeExporter commented 9 years ago
Wow -- good catch.  We can definitely do this for 0.64.

Original comment by ffdixon@gmail.com on 10 Mar 2010 at 11:20

GoogleCodeExporter commented 9 years ago
The compiler option are:
debug = false
optimize = true

Here's the reference file:
http://livedocs.adobe.com/flex/3/html/help.html?content=performance_06.html

Original comment by Me.S...@gmail.com on 10 Mar 2010 at 11:22

GoogleCodeExporter commented 9 years ago
Hi Denis,

I thought this was already the case. I mean, flex-config.xml already have 
"<optimize>true</optimize>" and build.xml already contains debug="false"

I made few tests and if I put in build.xml debug="true", BigBlueButton.swf goes 
from 
(by default) 445ko to 675ko. So the default config is already ok, isn't it ?

DJP

Original comment by D...@architectes.org on 28 Mar 2010 at 6:29

GoogleCodeExporter commented 9 years ago
look into doing this next iteration

Original comment by ritza...@gmail.com on 2 Apr 2010 at 7:51

GoogleCodeExporter commented 9 years ago

Original comment by ritza...@gmail.com on 31 May 2010 at 2:15

GoogleCodeExporter commented 9 years ago

Original comment by ritza...@gmail.com on 31 May 2010 at 2:16

GoogleCodeExporter commented 9 years ago
The files on my local windows build end up being around ~1.5 mb for all swf 
files 
together. However on the VM when I build they are 3.5mb. I've set the 
debug=false and 
optimize=true in mxmlc options in build.xml but no luck. flex-config.xml also 
has 
debug=false and optimize=true.
I don't know what the difference is between compiling from Flex Builder and 
compiling 
on Linux. It makes the client almost 3 times as large which is a huge issue, 
but I 
don't know how to fix it.

Original comment by Me.S...@gmail.com on 31 May 2010 at 5:36

GoogleCodeExporter commented 9 years ago
if we can't get this fixed for 0.7, perhaps at least we could build them on 
Windoze 
for our packages?  that way they don't end up huge.  then we can figure out the 
linux 
compilation problem later.

Original comment by jeremyth...@gmail.com on 31 May 2010 at 5:47

GoogleCodeExporter commented 9 years ago
I agree. The least we could do is include the small swf binaries in the 
distribution 
for regular users.

Original comment by Me.S...@gmail.com on 31 May 2010 at 6:00

GoogleCodeExporter commented 9 years ago
Fixed. For reference:
http://livedocs.adobe.com/flex/3/html/help.html?content=modular_4.html#191026

Original comment by Me.S...@gmail.com on 24 Jun 2010 at 3:34

GoogleCodeExporter commented 9 years ago

Original comment by Me.S...@gmail.com on 24 Jun 2010 at 3:37