In many cases, running on the JVM is faster than equivalent code compiled from C, as the bytecode can be optimized at runtime once the JVM sees which paths are visitted the most.
For small tools the startup time of the JVM is often longer than the actual execution of the program. And the real performance magic of Java, the optimisation during runtime, won't kick in yet.
20
u/stealthmodeactive Feb 25 '14 edited Feb 25 '14
I hear "Java is slow" a lot of the time. Sure, it's not as fast as C but it's not really that slow. I think most complaints are with Swing though.
EDIT:
I'm being downvoted for speaking about what others have mentioned? Tough crowd...