[英]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.