3 ms·
Compiled code is faster than bytecode is faster than interpreters. It's not always true, but it's a good rule of thumb.
by lev99 9y ago
Compiled code is faster than bytecode is faster than interpreters.
It's not always true, but it's a good rule of thumb.
- candiodari 9y agoIt's long established that Java's problem is not the JVM or bytecode but it's memory model. Java's bytecode execution speed in the JVM is good enough that it's on part with C, easily beating any language with even a slightly inefficient compiler, like Go or Haskell.
- ptx 9y agoAre you referring to the lack of value types? Or is there some more fundamental problem?
- candiodari 9y agoThat's a decent part of it, but also the fact that in Java: class A { B b; } "b" will be a pointer, as opposed to "b" being contained within instances of class A.