4 ms·
Java is not necessarily slower than C++. In some cases it could even be faster due to dynamic optimizations performed by JIT based on runtime profiling informat
by Fice 14y ago
Java is not necessarily slower than C++. In some cases it could even be faster due to dynamic optimizations performed by JIT based on runtime profiling information. For example, JIT can directly link or even inline polymorphic calls automatically at runtime.
Here is an overview of performance techniques used by the Java HotSpot VM:
https://wikis.oracle.com/display/HotSpotInternals/PerformanceTechniques https://wikis.oracle.com/display/HotSpotInternals/Performanc...