RFR 6996807 : FieldReflectorKey hash code computation can be improved
ivan.gerasimov at oracle.com
Tue Dec 18 10:42:21 UTC 2018
FieldReflectorKey class contains a combined-string representation of the
fields (their names and signatures).
This string is used for calculating the hash code and comparing two
FieldReflectorKey objects for equality, which is expensive.
It is proposed to store the names and signatures (which are likely to be
interned) in an array an use this array for both tasks utilizing
Arrays.hashCode() and Arrays.equals().
Would you please help review the fix?
With kind regards,
More information about the core-libs-dev