Some answers and suggestions in regards to compilation speed:

- the best hardware to use is probably whatever is best for the JVM you are 
using.  I don't know of and don't think there's any real recommended solutions 
out there, other than "whatever is fastest".

- similarly, one thing that helps compilation speed would be to try a different 
JVM (different version or even a different implementation... it has been quite 
awhile since my JRun days so I haven't paid as much attention to this, but back 
then it paid to try out IBMs JVM or JRockit).  Garbage collection settings are 
also helpful to tweak.  If you're using mxmlc.exe, the JVM settings are in 
bin/jvm.config.

- the compiler isn't multi-threaded when it is used from the command-line.  It 
is multi-threaded when used via the browser, but only for allowing multiple 
compilations to happen at once.

- one reason the server is slow to start up because it takes awhile for mx.swc 
and other SWCs to load.  This is one reason why compiling from the command-line 
is slower, since this loading has to happen on each compilation.

- I just checked and we aren't doing incremental compilation from the 
command-line in a way I thought we were.  The way is through something called 
SWOs.  As far as I can tell, this doesn't work from the command-line.  Because 
of this, I would recommend setting cache-swos to false in the flex-config.xml 
used when compiling from the command-line.  While this speeds things up when 
using the server, from the command-line this is just saved a whole lot of 
information that isn't being used.

- you can get a broad idea of where time is being spent through the 
unsupported, just-for-the-curious setting of "-Dtrace.benchmark" in the JVM 
arguments.

-Brian

-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Allen 
Manning
Sent: Friday, August 05, 2005 3:18 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Fastest Hardware for Flex compilation

Eric,

Thanks for the background on this.  I agree that it does seem much slower
than standard mxml page compilation.  Any idea if it is multi-threaded?

Allen
www.prismix.com/


-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Eric Raymond
Sent: 05 August 2005 15:08
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Fastest Hardware for Flex compilation

As an aside, I'll mention some things that you probably know:

- If you let the Flex server compile the app as the result of hitting
an mxml page, it compiles incrementally ... which is very fast.  Of
course this doesn't work well via ant (you can use the <http> tag, but
there's no easy way to check for errors).

- Startup time for the compiler seems farily high.   If you hve more
than one app to compile, it's better to compile them in one fell swoop
(e.g., We compile three flex apps in about the sam time as it take to
compile just the largest app app alone!)

- Personally we use the incremental server based compilation during
daily development and standalone ant based compilation for
distribution builds.



> > On 05/08/05, Allen Manning <[EMAIL PROTECTED]> wrote:
> > > I'm trying to get my flex compilation time down to as little as
> possible. 
> > > We are using mxmlc via Ant to compile our flex code.  What machine
> spec
> > > would be the best to build these swfs fast.  Would a dual proc
help at
> > all? 






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 



-- 
Incoming mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.269 / Virus Database: 267.10.1 - Release Date: 04/08/2005
 

-- 
Outgoing mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.269 / Virus Database: 267.10.1 - Release Date: 04/08/2005
 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 




------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12h2fgvo5/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123279827/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
">Fair play? Video games influencing politics. Click and talk back!</a>.</font>
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to