GitHub user davies opened a pull request: https://github.com/apache/spark/pull/12190
[SPARK-14119] [SQL] Improve HashedRelation for key fit within Long ## What changes were proposed in this pull request? Currently, we use java HashMap for HashedRelation if the key could fit within a Long. The java HashMap and CompactBuffer are not memory efficient, the memory used by them is also accounted accurately. This PR introduce a LongToUnsafeRowMap (similar to BytesToBytesMap) for better memory efficiency and performance. ## How was this patch tested? Existing tests. You can merge this pull request into a Git repository by running: $ git pull https://github.com/davies/spark long_map2 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/12190.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #12190 ---- commit b02b1d128fd8108a9af64e0cd7db65a7fcacca26 Author: Davies Liu <dav...@databricks.com> Date: 2016-04-05T04:56:35Z LongToUnsafeRowMap commit 1b68736b72e0cc710a01ccbfd46e957b2fa5132f Author: Davies Liu <dav...@databricks.com> Date: 2016-04-06T00:08:47Z update benchmark & cleanup ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org