Some more information about my slow compiler:

I'm running on a dual-core HP workstation with 4GB of RAM. I try to limit what 
else I'm running (usually just Excel and Firefox) and I've been watching Task 
Manager without noticing anything remarkable.

More recently I've been forced to work offsite on a laptop (dual-core 1GB) and 
the performance is a little slower. The desktop and laptop were setup 
completely differently with different versions of Windows. However, I was too 
lazy to reinstall Eclipse so I just copied over C:\eclipse (including the 
workspace) from my desktop to my laptop. Clue #1 - it's probably more to do 
with my Eclipse than my computer.

Small applications compile quickly. The problem grew slowly worse over time - 
after a month I was forced to abandon the "Build Automatically" option.

I haven't integrated my application, so right now it is a series of individual 
MXML files running by themselves in the browser (all within the same Project). 
Most files "import" other classes, and a couple "include" other files in a 
pretty ugly way. But I would have thought keeping them separate like this would 
reduce the compilation time.

I'm not including any graphics in my application yet. But I do Embed a couple 
of XML files at compile-time. One of them is reasonably large (8,000 lines) and 
I dread changing it because the application will only see it after a full 
recompile.  Next to those individual MXML files, the only thing that has 
consistently been growing is this Embedded XML file. Clue #2 - maybe the 
compiler doesn't like Embedding files?

I'll work on doing that other stuff you recommended - compiling with ANT/MXMLC, 
and generating the line count. I might also try upgrading Flex Builder. If none 
of that works, I'll take you up on your offer (Matt) and send you the source 
code.

All the best,

Ted.

--- In flexcoders@yahoogroups.com, Tim Rowe <tim.r...@...> wrote:
>
> 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