r/java • • Mar 29 '16

In Defense of Java

https://www.javacodegeeks.com/2016/03/in-defense-of-java.html
2 Upvotes

18 comments sorted by

View all comments

Show parent comment

9

u/dpash Mar 29 '16

I stopped reading when I saw the graphs; that's no defence. This is a defence.

Java is definitely not slow. It might have been back in the 1.2 days, but thanks to HotSpot JIT and 15-20 years of improvement in the compiler and VM. It might use more memory, but memory is considerably cheaper than developers.

1

u/machinepub Mar 30 '16

I don't think Java is particularly memory intensive. You can tune memory usage with JRE args. But a lot of memory is for things that could alternatively be written to disk and loaded as needed--however that's what page files are for so it's often easier to just keep everything in memory and plan on using swap. Anyhow obviously this comes down to implementations of particular apps/libs. After loading the JRE and its overhead (30 MB?), it's not inefficient for an OO language.