3 ms·
Hmm, I feel like that’s been the case for more than a couple of years. Java has been fast for well over 10 years, I’d say. But I think Java also still has the
by iainmerrick 4y ago
Hmm, I feel like that’s been the case for more than a couple of years. Java has been fast for well over 10 years, I’d say.
But I think Java also still has the problem that it tends to use a ton of memory (unless you use it the fintech way, manually wrangling your data in arrays rather than using lots of objects).
My subjective impression is that garbage collected languages have gone through a bit of a rise and fall over time -- “GC is bad because it’s slow!” “huh, GC is fast now” “Java is the way forward!” “GC uses a lot of memory” “Rust [or Swift] is the way forward!”
- corrral 4y ago> Hmm, I feel like that’s been the case for more than a couple of years. Java has been fast for well over 10 years, I’d say. It got the reputation in part because once upon a time Java programs were noticeably slow and heavy on resource use, no matter how many times Java fans posted micro-benchmarks of Java finding digits of Pi to "prove" Java was fast and we must all be imagining things. In actual fact, in the real world, it was slow. I think improving hardware has more to do with its feeling faster now, than anything else. Hardware got fast enough that it no longer feels (as) slow. Plus its competition, as far as GUI programs go, now prominently includes Electron. On the server, we deploy tens or hundreds of megabytes of container or VM and associated overhead to run a 2MB program. So also, everything else has gotten far more bloated and heavy, making Java look better by comparison.
- digisign 4y agoJava was slow at startup, speeding up as it is run. Those two were both improved, with 1000x faster hardware being the final leg of the stool.