Long compile time compared to Flash builder

Hi,

I'm currently trying out IntelliJ for AIR developpement, coming from Flash builder.
I'm experiencing unusually long compile times for my modules.

For example, a project containing 5 modules takes around 19 seconds to compile compared to 4 seconds with Flash builder. Parallel compiling does not seem to change anything.

What kind of settings can I change to get acceptable compile times ?

Cheers,

0
9 comments

What is your OS and IntelliJ IDEA version? If you are on OS X El Capitan then updating to IntelliJ IDEA 15 should help. Details here: https://youtrack.jetbrains.com/issue/IDEA-146354

0
Avatar
Permanently deleted user

I'm using OS X El Capitan with Intellij IDEA 15.

0

Can you please paste full contents of the Messages tool window after long successful compilation?

0
Avatar
Permanently deleted user

Information:[2-FGRA-0017_Lib]: /Applications/IntelliJ IDEA 15.app/Contents/jre/jdk/Contents/Home/jre/bin/java -Dapplication.home=/Users/josephdecarie/Documents/SDK/AIRSDK -Dfile.encoding=UTF-8 -Djava.awt.headless=true -Duser.language=en -Duser.region=en -Xmx512m -classpath /Users/josephdecarie/Documents/SDK/AIRSDK/lib/compiler.jar com.adobe.flash.compiler.clients.COMPC -load-config=/Users/josephdecarie/Library/Caches/IntelliJIdea15/compile-server/_temp_/IntelliJ_IDEA/idea-7883B584-23198640.xml
Information:[2-FGRA-0017_Lib]: Loading configuration: /Users/josephdecarie/Library/Caches/IntelliJIdea15/compile-server/_temp_/IntelliJ_IDEA/idea-7883B584-23198640.xml
Information:[2-FGRA-0017_Lib]: 1732712 bytes written to /Users/josephdecarie/Documents/Clients/Educatheque/Modules TNI/2-FGRA-0017/03_Developpement/01_Lib/bin/2-FGRA-0017_Lib.swc in 9.237 seconds
Information:[2-FGRA-0017_Lib]: Compilation successful
Information:[2-FGRA-0017_Desktop]: /Applications/IntelliJ IDEA 15.app/Contents/jre/jdk/Contents/Home/jre/bin/java -Dapplication.home=/Users/josephdecarie/Documents/SDK/AIRSDK -Dfile.encoding=UTF-8 -Djava.awt.headless=true -Duser.language=en -Duser.region=en -Xmx512m -classpath /Users/josephdecarie/Documents/SDK/AIRSDK/lib/compiler.jar com.adobe.flash.compiler.clients.MXMLC -load-config=/Users/josephdecarie/Library/Caches/IntelliJIdea15/compile-server/_temp_/IntelliJ_IDEA/idea-7883B584-7DB42FE0.xml -keep-as3-metadata+=Inject -keep-as3-metadata+=PostConstruct
Information:[2-FGRA-0017_Desktop]: Loading configuration: /Users/josephdecarie/Library/Caches/IntelliJIdea15/compile-server/_temp_/IntelliJ_IDEA/idea-7883B584-7DB42FE0.xml
Information:[2-FGRA-0017_Desktop]: 1174770 bytes written to /Users/josephdecarie/Documents/Modules TNI/2-FGRA-0017/03_Developpement/02_Desktop/bin/2-FGRA-0017_Desktop.swf in 3.072 seconds
Information:[2-FGRA-0017_Desktop]: Compilation successful
Information:2015-11-24, 15:35 PM - Compilation completed successfully with 2 warnings in 16s 261ms

0

May be 4 seconds with Flash Builder is incremental compilation? Ca you check that full recompilation is also fast?

You can check if different version of Java affects compilation performance. By default ActionScript compiler uses the same Java that is used by the IDE itself (/Applications/IntelliJ IDEA 15.app/Contents/jre/jdk/Contents/Home/jre/bin/java). But you can override it by setting

java.home
property in
/Users/josephdecarie/Documents/SDK/AIRSDK/bin/jvm.config
file (create file if it doesn't exist). For example:
java.home=/path/to/JDK1.8

You'll see Java used to start compiler in Messages tool window when compiler starts.

0
Avatar
Permanently deleted user

I tried switching to jdk 1.8 but still getting compile time between 16 and 25 seconds compared to 4 or 5 seconds with Flash builder.

Information:[2-FGRA-0017_Lib]: /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/bin/java -Dapplication.home=/Users/josephdecarie/Documents/SDK/AIRSDK -Xmx384m -Dsun.io.useCanonCaches=false -Dfile.encoding=UTF-8 -Djava.awt.headless=true -Duser.language=en -Duser.region=en -Xmx512m -classpath /Users/josephdecarie/Documents/SDK/AIRSDK/lib/compiler.jar com.adobe.flash.compiler.clients.COMPC -load-config=/Users/josephdecarie/Library/Caches/IntelliJIdea15/compile-server/_temp_/IntelliJ_IDEA/idea-7883B584-23198640.xml
Information:[2-FGRA-0017_Lib]: Loading configuration: /Users/josephdecarie/Library/Caches/IntelliJIdea15/compile-server/_temp_/IntelliJ_IDEA/idea-7883B584-23198640.xml
Information:[2-FGRA-0017_Lib]: 1732743 bytes written to /Users/josephdecarie/Documents/Modules TNI/2-FGRA-0017/03_Developpement/01_Lib/bin/2-FGRA-0017_Lib.swc in 15.743 seconds
Information:[2-FGRA-0017_Lib]: Compilation successful
Information:[2-FGRA-0017_Desktop]: /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/bin/java -Dapplication.home=/Users/josephdecarie/Documents/SDK/AIRSDK -Xmx384m -Dsun.io.useCanonCaches=false -Dfile.encoding=UTF-8 -Djava.awt.headless=true -Duser.language=en -Duser.region=en -Xmx512m -classpath /Users/josephdecarie/Documents/SDK/AIRSDK/lib/compiler.jar com.adobe.flash.compiler.clients.MXMLC -load-config=/Users/josephdecarie/Library/Caches/IntelliJIdea15/compile-server/_temp_/IntelliJ_IDEA/idea-7883B584-7DB42FE0.xml -keep-as3-metadata+=Inject -keep-as3-metadata+=PostConstruct
Information:[2-FGRA-0017_Desktop]: Loading configuration: /Users/josephdecarie/Library/Caches/IntelliJIdea15/compile-server/_temp_/IntelliJ_IDEA/idea-7883B584-7DB42FE0.xml
Information:[2-FGRA-0017_Desktop]: 1174807 bytes written to /Users/josephdecarie/Documents/Modules TNI/2-FGRA-0017/03_Developpement/02_Desktop/bin/2-FGRA-0017_Desktop.swf in 5.060 seconds
Information:[2-FGRA-0017_Desktop]: Compilation successful
Information:2015-11-25, 10:40 AM - Compilation completed successfully with 2 warnings in 25s 31ms

0
Avatar
Permanently deleted user

By the way, I check and Flash builder is doing a full recompilation.

0
Avatar
Permanently deleted user

So is there any other issue I should be aware of ?

0

I'm afraid I'm out of ideas.

0

Please sign in to leave a comment.