Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Java Is Fast, If You Don't Create Many Objects (2022) (vanillajava.blog)
13 points by Tomte 6 months ago | hide | past | favorite | 3 comments


To keep objects few, load lazily. E.g. if you need a List<Long> of ids from a List<Thing> create a lazy list view using (some library and..) Thing::id as a map/transform function. Way faster than the Streaming API. Works better if you only work with immutable types.

~2c


I'm impressed at how much better Oracle Java performs compared to Zulu, I'd been assuming all the JDKs were fungible.


I am not seeing that? Like, vs. old versions of Zulu, sure; but the 17/18 seem about the same to me?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: