diff options
author | Nong Li <nong@databricks.com> | 2016-03-10 13:31:19 -0800 |
---|---|---|
committer | Davies Liu <davies.liu@gmail.com> | 2016-03-10 13:31:19 -0800 |
commit | 747d2f5381b3ef0b2663ca7def42d3dc43ee13d7 (patch) | |
tree | e3716aaa02f9f89e7fe09b6db2743f6f3c4218b8 /repl | |
parent | 19f4ac6dc766a3d33b04cd071b414c3bea88e97d (diff) | |
download | spark-747d2f5381b3ef0b2663ca7def42d3dc43ee13d7.tar.gz spark-747d2f5381b3ef0b2663ca7def42d3dc43ee13d7.tar.bz2 spark-747d2f5381b3ef0b2663ca7def42d3dc43ee13d7.zip |
[SPARK-13790] Speed up ColumnVector's getDecimal
## What changes were proposed in this pull request?
We should reuse an object similar to the other non-primitive type getters. For
a query that computes averages over decimal columns, this shows a 10% speedup
on overall query times.
## How was this patch tested?
Existing tests and this benchmark
```
TPCDS Snappy: Best/Avg Time(ms) Rate(M/s) Per Row(ns)
--------------------------------------------------------------------------------
q27-agg (master) 10627 / 11057 10.8 92.3
q27-agg (this patch) 9722 / 9832 11.8 84.4
```
Author: Nong Li <nong@databricks.com>
Closes #11624 from nongli/spark-13790.
Diffstat (limited to 'repl')
0 files changed, 0 insertions, 0 deletions