IntelliJ IDEA Aspectj(Ajc编译器)花费太多时间在每个Make之后加载类 [英] IntelliJ IDEA Aspectj (Ajc compiler) takes too much time to load classes after every Make

查看:3889
本文介绍了IntelliJ IDEA Aspectj(Ajc编译器)花费太多时间在每个Make之后加载类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有一种方法来减少编译时间使用IntelliJ的Ajc编译器。我有相当大的项目,我想使用AspectJ,但不幸的是,当我试图与它一起工作,我发现,它需要太多的时间,Ajc加载所有类,它是做每次我打Make (使用Eclipse模式插件保存.java文件)。所以每一个微小的变化导致3秒的类加载...
有一种方法来缩短这个时间吗?最好摆脱类加载。它是极端耗时,因为它是现在,我不得不停止使用Ajc,并切换回到Javac这是几乎即时相比,Ajc。
我使用IntelliJ IDEA 10,AspectJ 1.6.11。

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.

推荐答案

目前IDEA使用类路径作为纵向路径 - 这允许避免UI配置,但会导致长的编译时间和增加的内存消耗。

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.

在IDEA 11(从下一个EAP开始),可以配置纵向路径。

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

这篇关于IntelliJ IDEA Aspectj(Ajc编译器)花费太多时间在每个Make之后加载类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆