06-09-2014, 02:23 AM
I've heard rumors about Java being able to JIT-compile the bytecode so that it actually executes faster than compiled C++ code. That's because Java can optimize for the specific machine on which it is running, while the C++ compiled code (usually) needs to be compatible with many platforms, thus it doesn't use all the performance enhancements it could. This might be especially true in the Windows world, where the users expect a single EXE to run on any Windows computer, so there's very little in the way of optimizations that could be done for a generic release. Of course, there are things like the video codecs that use dynamic code, but we don't want to go there