Repository navigation
Conversation
|
QA tests have started for PR 1871. This patch merges cleanly. |
|
QA results for PR 1871: |
|
QA tests have started for PR 1871. This patch merges cleanly. |
|
QA results for PR 1871: |
|
QA tests have started for PR 1871. This patch merges cleanly. |
|
QA results for PR 1871: |
|
QA tests have started for PR 1871. This patch merges cleanly. |
|
QA results for PR 1871: |
|
@Ishiihara Did you compare the speed? |
|
@mengxr It is about 1-2 minutes slower with vector size = 100 for different number of partitions. |
|
@mengxr Some benchmark result syn0 and syn1 as mutable.HashMap
syn0 and syn1 as big Array
|
|
Just FYI, mutable.HashMap can be pretty inefficient in space usage, compared e.g. to java.util.HashMap or to Spark's AppendOnlyMap. In this case it will depend on how many keys there are and how big the arrays of floats are (if that's the bulk of the data, it won't matter). |
|
Even better might be Spark's PrimitiveKeyOpenHashMap here. Again, if there are lots of keys. |
|
QA tests have started for PR 1871. This patch merges cleanly. |
|
QA results for PR 1871: |
|
Just wondering, any noticeable perf difference with this change? |
|
@mateiz The performance of PrimitiveKeyOpenHashMap is on par with mutable.HashMap. For one partition case, the PrimitiveKeyOpenHashMap is slightly faster than using big array. |
|
@Ishiihara why did you close this, has this been fixed elsewhere now? |
|
We merged #1932 instead. |
This bumps Boson version to 0.3.21 Change logs: https://github.pie.apple.com/pie/boson/compare/ab22a6fc844dbab5444c11815ea3a8c96aa43130...7b568876080e1c8e8345426db4b12493a864e9f9
@mengxr Please review the code.
Change list:
For 100 partitions, using mutable.HashMap reduces shuffle size from 8.1G to 4G.