3 ms·
Also due to the java compiler doing very little work (it's a really dumb compiler)
by masklinn 14y ago
Also due to the java compiler doing very little work (it's a really dumb compiler)
- pkolaczk 14y agoIt does all the same work as a C++ compiler, except optimization phase. Yet any C++ compiler with optimization turned off is still order of magnitude slower. The key differences are: - Java has a much simpler grammar to parse. - Everything is compiled at most once. - Encapsulation is stronger: private class members are not exposed in public class ABI and external code doesn't depend on them (this also extremely improves recompilation times - no need to compile half of the project because you changed a private method).