Speed wise and AS 2.0 you should go 'intrinsic'. Create a DLL (shared lib)
where your main code resides in, then compile your views against that. I've
done that on a big project and even the Flash IDE outperforms MTASC with
this solution.

Check out asigen: http://osflash.org/asigen to generate you're intrinsic
libraries. 

For this solution you need a mind switch and a different way to set things
up. Forget about AS 3.0, at that level it's not getting better.

Yours, Sander


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Donald Trump
Sent: dinsdag 29 januari 2008 20:53
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] How to shorten the compile time?

I'm at the final stages of my project.
The thing that I am bothered most now is compile time.

The project has evolved for the past couple of years into a large code base
of Action Script classes.
There are about 300 classes which is 1 MB of source code.
It takes about 20 seconds to compile the program.

I use MTASC compiler, and the IDE is Flash Develop.
As far as I see, there are no cache for compiled classes in MTASC, so it
does not matter whether I've changed one class in the project or all of them
the compiler would compile all the classes.

Native Flash compiler does compilation caching (to ASO files). But it takes
even more time to compile the project using Flash (65 seconds!).

Any ideas how to decrease compile time?

One way would be to break the code base in a number SWFs, compile them
separately and load at runtime. However now this task looks unreal because
of amount of the code base and its complexity.

I wonder if anyone uses this approach with the only purpose to shorten the
compile time of Action Script code.

My project is Action Script 2.0 based.
Maybe the right step is to move to AS 3.0?
Do you know whether this compile caching problem was solved in AS 3.0 Flash
and haXe compiler?


And by the way, which IDE/compiler do you use?
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to