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

后端 未结 8 2023
别跟我提以往
别跟我提以往 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:58

    The fact that you're using generated source, the massive difference in speed and the StackOverflowError might suggest that one (or more) of your files have some constructs that the javac parsers doesn't agree with.

    Could you try to compile only subsets of your code and see if any one class/package slows down the process especially (probably one of the generated ones).

提交回复
热议问题