It turns out that the 'Java Heap Space' error isn't an mxmlc issue. Frédéric THOMAS (@webDoubleFx) very kindly run some tests earlier. The error only happens in FlashBuilder 4.7. In FB4.6 and IntelliJ it compiles without any problems whatsoever - all using the same 4.9.1 compiler.
An Adobe issue I think :) I will try to find some time to do some more tests over the weekend comparing *Math.sqrt() *in mxmlc versus the ASC2.0 that's bundled with the new AIR. Thanks again to Frédéric if he's reading :) Simon On 9 July 2013 09:05, Simon Gladman <[email protected]> wrote: > Cheers Alex. > > I'll create that bug report over the next few days. > > Simon > > *_________________________* > *+44 (0) 7973 669691* > *[email protected]* > *http://flexmonkey.blogspot.com/* > > On 9 Jul 2013, at 01:56, Alex Harui <[email protected]> wrote: > > > > On 7/8/13 4:05 PM, "simon gladman" <[email protected]> wrote: > > I've moved the project to a pure ActionScript 3 project and it works fine > > - > > compiling in a fraction of the time that the MXML compiler does. > > > Also, under Flex, *Math.sqrt()* runs like a dog inside Workers. I had to > > pre-calculate square roots and put them in a look up array. Under the AIR > > 3.7 (with ASC2) compiler, it runs far, far quicker. > > Interesting. Maybe file a bug with both SWFs so we can compare the > results. > > > Any news on Apache Flex using ASC2? > > We've got a lot of work ahead of us before that happens, and not enough > folks who have time to do that work. > > -Alex > > -- *flexmonkey.co.uk | @FlexMonkey <https://twitter.com/FlexMonkey> | +44 (0) 7973 669691*
