I just read
"Any class that implements the IEqualityComparer interface is expected to provide the implementation for the Equals method." - (Delphi DocWiki)
and
"Any class that implements the IEqualityComparer interface is expected to provide the implementation for the GetHashCode method." - (Delphi DocWiki)
How will performance of a TDictionary be if I create a TDictionary<TObject, TObject>
and do not implement a IEqualityComparer?
I have not found a default implementation (in Delphi 2009). So how will the hash code for they keys be calculated?
If it is simply the memory address of the object in the Dictionary entries key, will a search for a given entry be performed in sequential order?