Using multiple cores/processors when compiling Java

前端 未结 6 638
梦如初夏
梦如初夏 2020-12-13 19:30

I use a desktop with eight cores to build a Java application using Ant (through a javac target). Is there a way to speed up the compilation by using more than one thread or

6条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-13 19:58

    I don't know of any way to do tell ant itself to make effective use of multiple cores. But you can tell ant to use the Eclipse Compiler, which has support for multithreaded compilation built-in.

提交回复
热议问题