GitHub user cloud-fan opened a pull request:
https://github.com/apache/spark/pull/10790
[SPARK-12860][SQL] speed up safe projection for primitive types
The idea is simple, use `SpecificMutableRow` instead of `GenericMutableRow`
as result row for safe projection.
A simple benchmark shows about 1.5x speed up for primitive types, code:
https://gist.github.com/cloud-fan/fa77713ccebf0823b2ab#file-safeprojectionbenchmark-scala
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/cloud-fan/spark safe-projection
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/10790.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 #10790
----
commit 4999c36c6a9710909c1b830119fd5a7789b79257
Author: Wenchen Fan <[email protected]>
Date: 2016-01-17T04:53:19Z
speed up safe projection
commit 6b22c91539cf4f766c6552e303a28faac6fef8eb
Author: Wenchen Fan <[email protected]>
Date: 2016-01-17T06:09:52Z
Merge remote-tracking branch 'origin/master' into safe-projection
----
---
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]