Compact header and computed hashCode
Remi Forax
forax at univ-mlv.fr
Tue Dec 17 17:31:48 UTC 2024
Hello,
i was taking a look to the code submitted by Roman to avoid allocating hashCode if not necessary, pretending i'm able to read VM code, when an idea pop up.
I wonder if for small objects (64bits or less) containing only primitives, it's not better to not reserve a space for the hashcode at all and recompute it using the value of the fields ?
Rémi
More information about the lilliput-dev
mailing list