as编译代码慢
不知道什么版本开始,多了一个构建分析功能。 今天点开发现一个提示:1.7% (1.1s) of your build’s time was dedicated to garbage collection during this build. You can change the Gradle daemon heap size on the memory settings page.
The default garbage collector was used in this build running with JDK 11. Note that the default GC was changed starting with JDK 9. This could impact your build performance by as much as 10%. Recommendation: Fine tune your JVM . Don't show this again.
还很贴心下面显示了一个按钮,让你跳进去设置,调整内存。
回收上面的话,我点这个按钮无响应,shift。 在2022.2.1中也没有找到内存设置,见鬼了。