I have been getting confused about some yourkit snapshots which seems to suggest that in a particular stack hashmap.put()
is proving to be costly.
Let's say the key for this map is a very complex object which has not overridden equals()
or hashCode()
Is it really possible for HashMap.hash()
or Object.hashCode()
to be costly in certain situations ?