[英]Eclipse APT slows compiling
我正在编写一个Eclipse APT插件来检查我的注释是否正确。
但似乎启用APT会导致编译过程变慢。 即使保存一个微小的,未引用的类也需要几秒钟,并且会占用大量内存。
我认为原因是APT框架检查完整的对象树(大型项目),即使我只需要一个类。 只是猜测这个。
除了禁用APT之外,有什么方法可以提高性能吗?
编辑:我学到的第一件事是APT处理分阶段运行,我很可能只需要其中一个
if (Phase.RECONCILE != Phase.valueOf(env.getOptions().get("phase"))) { return; }
来自java-apt团队的此演示文稿(PPT演示文稿的zip下载)涉及一些有关提高性能的问题。
[英]maven, APT problems, eclipse
[英]Eclipse compiler with APT
[英]Java compiling error on Eclipse
[英]Compiling to a specific JRE with Eclipse
[英]Eclipse not compiling because of ClassNotFoundException
[英]Eclipse runtime compiling?
[英]Code compiling with eclipse but not with javac
[英]Compiling servlets and GWT with eclipse
[英]Compiling java 7 for java 6 with Eclipse
[英]Eclipse - Compiling & executing program
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.