View Single Post
Old 11-29-2007, 04:32 PM   #28 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,140
Belisarius is on a distinguished road
Quote:
Originally Posted by DJMaze View Post
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.
__________________
GitS
Belisarius is offline   Reply With Quote