Open scabug opened 7 years ago
Imported From: https://issues.scala-lang.org/browse/SI-10084?orig=1 Reporter: @paplorinc
Since the FlatHashTable is deleted by the following commit, can this issue be closed?
https://github.com/scala/scala/commit/3a6f637b33056df80b93e743fe274f623925ea21
the “we probably have other variants also” part gives me pause — @szeiger @Ichoran @julienrf wdyt?
The title is a bit misleading. It's not really about different hashing algorithms (we use .##
or .hashCode
everywhere) but about improving hashes and mapping them to hash buckets. We still have different algorithms in mutable and immutable hash-based collections. See https://github.com/scala/bug/issues/11326 for a related discussion.
If the issue is that the right hash algorithm has been chosen, is it better to close the issue itself? (Or I think that rewriting the title ... unifying is not the point of discussion)
The hashing algorithms in
FlatHashTable
andHashTable
differ fromHashMap
andHashSet
- and we probably have other variants also.They should be unified, since
HashTable
explicitly deprecated the methods used in other places.See https://issues.scala-lang.org/browse/SI-10049?focusedCommentId=75931 for further details.