With over 2,000 source and resource files in our application (just the 
client-side is 1k as, 500 mxml, there's another 8k8 .java on the server side), 
our compile time is under 30 seconds (on a C2D 2.33 w/4GB), so I would hazard a 
guess something's wrong.

A few things to check/do:
0.  Create a basic application.  Does compiling even the simplest of apps take 
a similar amount of time?
1.  Get a line counter.  There's dozens out there, just grab one you're happy 
with (no, I don't have any particular recommendations).  At least just get a 
file and line counter so you've got some basic metrics to base information on.
2.  What is the system CPU doing?  Is it burning away at 100% while compiling 
the whole time?  Similarly, are you running out of memory?  Eclipse can get 
pretty memory hungry, and if you're only on a 1GB system with Eclipse trying to 
chew 700MB, it could be paging like crazy.
3.  Fire up perfmon and add some counters while you do a compile.  Find out 
what's going on - any heavy disk thrashing, cpu/memory loading.
Basically try to identify is it just doing any timed waits or blocking calls?
4.  Write an ANT target to compile the source from a CLI, if you haven't done 
so already.  Hell, you could even execute it manually.  Does mxmlc.exe take the 
same amount of time as the eclipse build?

These are just a few small things I'd consider trying/looking at which might 
help identify the problem

Tim Rowe
Software Engineer
carsales.com Ltd

________________________________
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of edlueze
Sent: Thursday, 26 March 2009 2:07 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex Builder Compiler Performance Benchmarking


Hi Folks:

Can somebody tell me what a reasonable compile-time for a Flex Application is? 
A clean build for my application will take about 2 hours, and an incremental 
compile after I've changed several files will often take an hour. If I've only 
changed one file then an incremental compile will usually take less than a 
minute.

I'm using Flex Builder 3.0 in Eclipse and it would be typical for me to see the 
same error message repeated a dozen times (presumably the compiler has passed 
through the same file that many times).

I was new to Flex when I started this project and I've been working on it for 
about 6 months. I have no idea how many lines of code I've got, but how big 
could it be if it's only been me working on it?! There are about 100 files of 
all sorts and I've cleared out most of the other projects.

After reading others complain about compilation times of only 40 seconds (my 
dream!) I started getting worried that I've fundamentally botched the way I've 
set things up. Any feedback would be very welcome!

Thanks,

Ted.



Reply via email to