2 ms·
In cases where developers have unconstrained resources I'd actually expect C{,++} to be about 50% faster than Java as you see in the programming languages shoot
by Symmetry 14y ago
In cases where developers have unconstrained resources I'd actually expect C{,++} to be about 50% faster than Java as you see in the programming languages shootout due to better ability to optimize memory use. But I'd expect most professionally produced software to use PGO, and hence get most of the same benefit from runtime information as Java.
- pron 14y agoBut you can't optimize large software that has to be maintained. Even if you could (because you have unlimited resources), you won't be getting a 50% improvement because you'll be spending a lot of the time on IO and task switching anyway. And just to make sure: whatever improvement you get will be very costly. We're talking manual control of memory fences, NUMA memory allocation and placement, lock biasing and more. All stuff the JVM does a very good with little effort for the Java programmer.