Skip to main content
Inspiring
November 18, 2009
Question

EXTREMELY Slow Compiler?

  • November 18, 2009
  • 2 replies
  • 803 views

I have a big flash project, it has exactly 240 Classes and the size of those classes is 2,537,658 bytes

It took flash roughly 25-30 seconds to compile the whole thing.

It has no GRAPHIC, it has no AUDIO, in my application every single thing is created with script (the button, the window, etc)

It uses no fl.* classes or classes from flash components

How can i make it compile faster? , in fact for a development environment, i really wont mind if there are no optimization at all, but the only thing i can disable is only the Compress Movie (Under Publish Settings)

Please help, is there any settings that can be disable / enable to make the compiler compile a lot faster?

The Spec Of My Computer

AMD Phenom

Memory 2GB

Optimized SSD Harddisk Drive

(and i really dont think the spec is the one to blame, since i can compile any other code from other programming language very fast)

One thing i do notice is that, when i publish my flash, the flash only eat one core of my processor and it read / write my harddisk at a very slow rate (around 1MBPS) , why wont it uses all cores from my processor?

I have tried compiling on the same machine on different operating system, XP, Windows 7 32bit, Windows 7 64 bit, and the three of them showed exactly the same thing (uses only 1 core)

I also have tried compiling the movie using the old CS3 versus the new CS4, and i can see no different in speed at all

Please help

Cheers and God Bless,

Chowi

This topic has been closed for replies.

2 replies

November 19, 2009

I don't know about you, but 30 seconds seems pretty fast for 240 classes. I guess I am just used to compile times on C++, in comparison anything in Flash is lightning speed. Anyway, to address your problem: FlashDevelop may be faster, thats what I use primarily. If you have vector assets or other graphics created in the IDE you could compile them into a SWC file. Then you can import that into FlashDevelop to access your assets. You should be able to compile code into the SWC as well, so if you have a bunch of classes that are final and aren't being edited, then compiling them into an SWC should save you time. Then you would only have to compile the handful of classes you are working on at the moment. That should save time in theory although I have never tried it.

November 18, 2009

Flash isn't threaded, so it only uses one processor. Personally, 25-30 secs for 240 classes doesn't seem too bad... but, you can compile much quicker by using FlashDevelop and the Flex Compiler. Go over to www.flashdevelop.org and check it out - it's free even.

M4G1C14NAuthor
Inspiring
November 19, 2009

The thing about my project is, although it uses no bitmap and no audio, but it still uses some shape that is drawn using flash ide (such as the arrow for scroll , the preloader animation, etc).

Now if i uses Flash IDE , here is the workflow suggested by FlashDevelop

AS3 Flash IDE Project

This project does not create any file, it only provides an optimal configuration (ie. code completion) for working with Adobe Flash.

When you work with this kind of project, just press F5 or Ctrl+Enter to test the currently open FLA in Adobe Flash.

If i am not mistaken, that means i still need to compile using my flash ide instead of FlashDevelop compiler

Now, it doesnt mean that i cant convert my project into a full AS3 project, but i need to know if using flash develop will really boast the compiler speed?

because here is what i read in Flash Develop about page

FlashDevelop is a great general purpose code editor:

  • Easy to use editor with syntax highlighting, bookmarks and tasks (TODO) handling.
  • Comprehensive Find and Replace Dialog.
  • Find in Files dialog.
  • Intuitive and very flexible panel based interface.
  • Advanced snippet completion (code templates) and integrated snippet editor.
  • Open plug-in based architecture.

Please help

Cheers and God Bless,

Chowi

November 19, 2009

You will of course need to see for yourself... but I believe you will see a significant speed increase using the Flex compiler. I suggest you do some reading in the FD forums, there are various comments regarding switching compilers and the speed increase it provides.