3 ms·
Java Is Fast, If You Don't Create Many Objects (2022)
- deleted 2y ago[deleted]
- klooney 2y agoI'm impressed at how much better Oracle Java performs compared to Zulu, I'd been assuming all the JDKs were fungible.
- saurik 2y agoI am not seeing that? Like, vs. old versions of Zulu, sure; but the 17/18 seem about the same to me?
- gnahraf 2y agoTo 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