3 ms·
A digression on Java compiler performance: > Java's compile times are sorta reasonable but are apparently getting worse. I'm not entirely sure what this is ab
by smarks 10y ago
A digression on Java compiler performance:
> Java's compile times are sorta reasonable but are apparently getting worse.
I'm not entirely sure what this is about. Could it have anything to do with JEP 215? [1] There were some slowdowns in `javac` in Java 8, but these should be fixed in Java 9. Note this has more to do with type inference than with Java's type system per se, though this distinction is of little difference to most Java programmers.
In our experience with OpenJDK builds, the main performance issues have been around redundant loading/parsing of library class files and JVM/JIT warmup time. These have mostly been mitigated by JEP 199. [2] With the exception of the issues I mentioned above, it's hard for me to see that static typing has had an impact on the performance of Java compilation.
(Overall I agree with the main thrust of the article, particularly with regard to the "set of complicated trade-offs." Personally I find static typing very helpful, but it won't solve software quality problems.)
[1] http://openjdk.java.net/jeps/215 http://openjdk.java.net/jeps/215
[2] http://openjdk.java.net/jeps/199 http://openjdk.java.net/jeps/199
- DRMacIver 10y agoIt might be based on false information - I'm a bit out of touch with Java development. I'll remove it.
- smarks 10y agoThanks for the update. Of course if there are any performance problems, I'm sure the javac team would like to hear about it, as this is something they do pay attention to.