GitHub user rxin opened a pull request:
https://github.com/apache/spark/pull/7763
[SPARK-9458] Avoid object allocation in prefix generation.
In our existing sort prefix generation code, we use expression's eval
method to generate the prefix, which results in object allocation for every
prefix. We can use the specialized getters available on InternalRow directly to
avoid the object allocation.
I also removed the FLOAT prefix, opting for converting float directly to
double.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/rxin/spark sort-prefix
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/7763.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 #7763
----
commit 5dc2f0617cf57fb50f7e9c59ddcecbb5f792f702
Author: Reynold Xin <[email protected]>
Date: 2015-07-30T00:49:46Z
[SPARK-9458] Avoid object allocation in prefix generation.
----
---
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]