Quote:
Originally Posted by DJMaze
Functions do benefit to a program, due to the fact that Java needs wrapper objects to call Windows API C functions, and that's why Java is slow.
|
Hey now, let's not go on perpetuating myths. Java 1.1 was slow (frequently due to the way early versions of Java were doing garbage collection) - recent versions of Java, however, are very fast. Remember, the JVM isn't interpreting Java code, it's interpreting compiled bytecode - something that is pretty close to machine code. At that point, it's a question whether or not the compiled machine code is faster than the interpreted bytecode run through a JIT compiler, which due to the advancement of profilers and runtime optimizers, isn't necessarily a foregone conclusion.