News for hackers. Stuff that matters.
Re:Java's records, Lombok's data, and Kotlin's data classes by iainmerrick on Friday May 07, 2021 @04:20PM (#27080429)
Structs with mutable fields is hardly “ultimate low level optimization”, it’s something a lot of programmers still use as a matter of course. (I say this as a fan of immutable data!)

Ultimate low-level optimization in Java would be more like packing your structure into arrays of integers - which is something people actually do in Java. Just because you’re using Java doesn’t mean you don’t want your code to run as fast as possible.

There are no comments on this comment yet.