News for hackers. Stuff that matters.
Re:Performance of modern Java on data-heavy workloads by int_19h on Tuesday June 09, 2020 @06:15PM (#23471566)
If an object is truly immutable, its object identity shouldn't matter in the vast majority of cases, and so it should be okay to just copy the whole thing, instead of passing around references to it.

Unfortunately, the legacy Java semantics of == means that they can't do this proactively. But didn't Java get opt-in value types recently?

There are no comments on this comment yet.