P
perry
actually, it's a bit of an illusion to argue that c & c++ produce faster
implementations than java. before the days of JIT (just-in-time)
compilation java was primarily an interpreted language so there was no
argument there. however with the introduction of JIT things changed.
true, technically speaking c/c++ is faster but only by a marging of less
than 1%.
check out:
http://java.sun.com/products/hotspo...tspot_v1.4.1/Java_HSpot_WP_v1.4.1_1002_4.html
http://java.sun.com/docs/books/tutorial/post1.0/preview/performance.html
http://java.sun.com/developer/onlineTraining/Programming/JDCBook/perf2.html
http://java.sun.com/developer/onlineTraining/Programming/JDCBook/perf2.html#jit
http://java.sun.com/developer/onlineTraining/Programming/JDCBook/perfTech.html
"The server VM contains an advanced adaptive compiler that supports many
of the same types of optimizations performed by optimizing C++
compilers, as well as some optimizations that can't be done by
traditional compilers, such as aggressive inlining across virtual method
invocations. This is a competitive and performance advantage over static
compilers. Adaptive optimization technology is very flexible in its
approach, and typically outperforms even advanced static analysis and
compilation techniques."
http://java.sun.com/products/hotspot/docs/whitepaper/Java_HotSpot_WP_Final_4_30_01.html
i know, your going to stick to your guns over the 1%. however, the
difference is performance at level is typically most insignificant.
- perry
implementations than java. before the days of JIT (just-in-time)
compilation java was primarily an interpreted language so there was no
argument there. however with the introduction of JIT things changed.
true, technically speaking c/c++ is faster but only by a marging of less
than 1%.
check out:
http://java.sun.com/products/hotspo...tspot_v1.4.1/Java_HSpot_WP_v1.4.1_1002_4.html
http://java.sun.com/docs/books/tutorial/post1.0/preview/performance.html
http://java.sun.com/developer/onlineTraining/Programming/JDCBook/perf2.html
http://java.sun.com/developer/onlineTraining/Programming/JDCBook/perf2.html#jit
http://java.sun.com/developer/onlineTraining/Programming/JDCBook/perfTech.html
"The server VM contains an advanced adaptive compiler that supports many
of the same types of optimizations performed by optimizing C++
compilers, as well as some optimizations that can't be done by
traditional compilers, such as aggressive inlining across virtual method
invocations. This is a competitive and performance advantage over static
compilers. Adaptive optimization technology is very flexible in its
approach, and typically outperforms even advanced static analysis and
compilation techniques."
http://java.sun.com/products/hotspot/docs/whitepaper/Java_HotSpot_WP_Final_4_30_01.html
i know, your going to stick to your guns over the 1%. however, the
difference is performance at level is typically most insignificant.
- perry