Github user jkbradley commented on the pull request:
https://github.com/apache/spark/pull/3643#issuecomment-68464357
I ran some quick tests with random sparsity patterns. Averaged over 1000
iterations, it's definitely faster:
length | v1 sparsity | v2 sparsity | new
time | old time | speedup
--------- | --------- | ----------- |
----------- | ----------- | -----------
1000 | 1 | 0.5 | 9.42E-06 |
6.73E-04 | 71.44
1000 | 1 | 0.1 | 1.69E-06 |
5.50E-05 | 32.43
1000 | 1 | 0.01 | 1.90E-06 |
3.30E-05 | 17.40
1000 | 0.5 | 0.1 | 9.89E-06 |
7.17E-05 | 7.25
1000 | 0.5 | 0.01 | 2.54E-06 |
5.80E-05 | 22.80
1000 | 0.1 | 0.01 | 1.95E-06 |
5.82E-05 | 29.84
10000 | 1 | 0.5 | 1.11E-05 |
2.30E-04 | 20.73
10000 | 1 | 0.1 | 1.03E-05 |
2.54E-04 | 24.54
10000 | 1 | 0.01 | 8.69E-06 |
3.90E-04 | 44.92
10000 | 0.5 | 0.1 | 1.47E-05 |
3.90E-04 | 26.63
10000 | 0.5 | 0.01 | 8.63E-06 |
4.03E-04 | 46.76
10000 | 0.1 | 0.01 | 1.81E-06 |
5.96E-04 | 329.01
100000 | 1 | 0.5 | 9.27E-05 |
0.004039351 | 43.60
100000 | 1 | 0.1 | 9.06E-05 |
0.001540544 | 17.01
100000 | 1 | 0.01 | 8.71E-05 |
0.002636216 | 30.25
100000 | 0.5 | 0.1 | 1.15E-04 |
0.003777669 | 32.76
100000 | 0.5 | 0.01 | 9.61E-05 |
0.004879063 | 50.79
100000 | 0.1 | 0.01 | 1.89E-05 |
0.003148419 | 166.29
1000000 | 1 | 0.5 | 0.001017196 |
0.05418411 | 53.27
---
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 [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]