javaperformanceintellij-ideaaspectj

IntelliJ IDEA Aspectj (Ajc compiler) takes too much time to load classes after every Make


I wonder if there is a way to reduce compilation time when using Ajc compiler with IntelliJ. I have rather big project, i would like to use AspectJ with, but unfortunatly when I've tried to work with it i found out that it takes too much time for Ajc to load all classes and it is doing it every time i hit Make(save .java file with Eclipse Mode plugin). So every tiny change causes 3 second of class loading... Is there a way to shorten this time? Preferably get rid of class loading at all. It is extremly time consuming as it is now and I had to stop using Ajc and switch back to Javac which is nearly instant compared to Ajc. I am using IntelliJ IDEA 10, AspectJ 1.6.11. Not sure if more info is needed.


Solution

  • At the moment IDEA uses a classpath as an aspectpath - this allows to avoid UI configuration, but causes long compilation time and increased memory consumption. This is especially notable on a big projects.

    In IDEA 11 (starting from a next EAP) aspectpath will be configurable.