GitHub user nongli opened a pull request:
https://github.com/apache/spark/pull/11624
[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
```
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/nongli/spark spark-13790
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/11624.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 #11624
----
commit 3b5ad124c18cf4c87620c8b20272c670acf59509
Author: Nong Li <[email protected]>
Date: 2016-03-10T01:00:13Z
[SPARK-13790] Speed up ColumnVector's getDecimal
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.
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
----
---
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]