Software > Software
JAVA -> C++
hobbes:
C++ is much faster compared to JAVA on the order of hundreds of times. It is much less forgiving but also much more powerful.
Roman505:
with great power comes great responsibility to delete()
hobbes:
yes, you have to delete what you create but at least the garbage collector does not hiccup and make your program pause.
Roman505:
with less power comes hiccoughs.
Are we all covered now? 8)
jwatte:
--- Quote ---C++ is much faster compared to JAVA on the order of hundreds of times.
--- End quote ---
I can hate Java as much as the next guy, but this is simply not a true statement.
On modern servers and client machines, using modern Java VMs, Java is more like half the speed of native C++, when using the same level of tuning in implementation.
Even on very small form factors, where you can't afford to use JIT code generation or keep a code cache around, you can do better than 100:1, because many of the Java opcodes are more expressive than machine codes, and thus a "threaded interpreter" (nothing to do with threads of execution) can get to about 10:1 or so.
And when you are I/O bound, Java and C++ are equally I/O bound and thus equally slow :-)
Navigation
[0] Message Index
[*] Previous page
Go to full version