Why is javac 1.5 running so slowly compared with the Eclipse compiler?

后端 未结 8 2010
别跟我提以往
别跟我提以往 2021-02-04 16:27

I have a Java Maven project with about 800 source files (some generated by javacc/JTB) which is taking a good 25 minutes to compile with javac.

When I changed my pom.xml

8条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-04 16:50

    For the Sun compiler you are starting up a whole JVM process for each file you wish to compile. For the Eclipse compiler it is just connecting to a daemon process. I suggest setting fork to false, although it still may not be quite as fast.

提交回复
热议问题