-
- Downloads
Merge pull request #204 from rxin/hash
OpenHashSet fixes Incorporated ideas from pull request #200. - Use Murmur Hash 3 finalization step to scramble the bits of HashCode instead of the simpler version in java.util.HashMap; the latter one had trouble with ranges of consecutive integers. Murmur Hash 3 is used by fastutil. - Don't check keys for equality when re-inserting due to growing the table; the keys will already be unique. - Remember the grow threshold instead of recomputing it on each insert Also added unit tests for size estimation for specialized hash sets and maps.
No related branches found
No related tags found
Showing
- core/src/main/scala/org/apache/spark/util/collection/OpenHashSet.scala 57 additions, 50 deletions.../scala/org/apache/spark/util/collection/OpenHashSet.scala
- core/src/test/scala/org/apache/spark/util/collection/OpenHashMapSuite.scala 14 additions, 2 deletions...a/org/apache/spark/util/collection/OpenHashMapSuite.scala
- core/src/test/scala/org/apache/spark/util/collection/OpenHashSetSuite.scala 19 additions, 1 deletion...a/org/apache/spark/util/collection/OpenHashSetSuite.scala
- core/src/test/scala/org/apache/spark/util/collection/PrimitiveKeyOpenHashMapSuite.scala 13 additions, 1 deletion.../spark/util/collection/PrimitiveKeyOpenHashMapSuite.scala
Please register or sign in to comment