MXMLC's XML embedding is terrible. For anything non-trivial, embed your XML
as a ByteArray and just parse it as a String.

-Josh

2009/4/16 edlueze <edlu...@onegen.com>

>
>
> I've finally had a chance to investigate my slow compiler performance and
> I've made a shocking discovery!
>
> As a reminder, I asked the community how long I should expect a typical
> compilation to take. The response I got was "about 40 seconds". My
> clean-build compilations take about 2 hours!!!
>
> Today I eliminated the two large XML files from my project that I ask the
> compiler to Embed. Together, the two XML files are about 10,000 lines long.
> To my utter amazement, this was the primary cause of the slow compiling. My
> clean-build compile time went from 2 hours to less than 2 minutes!
>
> I can usually avoid the 2 hour compiles if I change just one file. But if I
> change two files (not including the embedded XML files that rarely need to
> be changed) I often trigger the long compilation.
>
> This cannot possibly be what the compiler-engineers at Adobe intended. I'm
> going to file a bug with Adobe, but let me know if you've got other thoughts
> on better workarounds.
>
> Thanks!
>
> Ted.
>
>
> --- In flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>,
> "mmormando" <m...@...> wrote:
> >
> > Hm, as you said in a later post, I'd suspect the xml file, or perhaps
> other resources. I'm working on a fairly large project, some Java, a few
> graphics and css, as well as 70+ modules of various sizes and our build time
> with a little homegrown Maven plugin is coming in at under 8 minutes.
> > Please let us know if you find out what the issue is.
> > Good luck!
> > Mike
> >
> >
> >
> > --- In flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>,
> "edlueze" <edlueze@> wrote:
> > >
> > > 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.
> >
>
>  
>



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/

Reply via email to