spark-instrumented-optimizer/project
Peng Meng a0345cbebe [SPARK-21680][ML][MLLIB] optimize Vector compress
## What changes were proposed in this pull request?

When use Vector.compressed to change a Vector to SparseVector, the performance is very low comparing with Vector.toSparse.
This is because you have to scan the value three times using Vector.compressed, but you just need two times when use Vector.toSparse.
When the length of the vector is large, there is significant performance difference between this two method.

## How was this patch tested?

The existing UT

Author: Peng Meng <peng.meng@intel.com>

Closes #18899 from mpjlu/optVectorCompress.
2017-08-16 19:05:20 +01:00
..
build.properties [SPARK-21709][BUILD] sbt 0.13.16 and some plugin updates 2017-08-12 20:01:20 +01:00
MimaBuild.scala [SPARK-18638][BUILD] Upgrade sbt, Zinc, and Maven plugins 2016-12-03 10:36:19 +00:00
MimaExcludes.scala [SPARK-21680][ML][MLLIB] optimize Vector compress 2017-08-16 19:05:20 +01:00
plugins.sbt [SPARK-21731][BUILD] Upgrade scalastyle to 0.9. 2017-08-15 13:59:00 -07:00
SparkBuild.scala [SPARK-21731][BUILD] Upgrade scalastyle to 0.9. 2017-08-15 13:59:00 -07:00