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

后端 未结 8 2027
别跟我提以往
别跟我提以往 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条回答
  •  旧时难觅i
    2021-02-04 17:00

    It may be that the javac compiler operates close at its heap limit (64MB or so). In that case, it spends most of the time in the garbage collector. Give the compiler a good chunk of memory, say 256M or 512M and see if it runs faster.

提交回复
热议问题