diff options
author | Reynold Xin <rxin@databricks.com> | 2015-07-29 20:46:03 -0700 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2015-07-29 20:46:03 -0700 |
commit | 9514d874f0cf61f1eb4ec4f5f66e053119f769c9 (patch) | |
tree | ed692e94ed59d559b4b2b16ca8b88045021bbd6b /streaming | |
parent | a200e64561c8803731578267df16906f6773cbea (diff) | |
download | spark-9514d874f0cf61f1eb4ec4f5f66e053119f769c9.tar.gz spark-9514d874f0cf61f1eb4ec4f5f66e053119f769c9.tar.bz2 spark-9514d874f0cf61f1eb4ec4f5f66e053119f769c9.zip |
[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.
Author: Reynold Xin <rxin@databricks.com>
Closes #7763 from rxin/sort-prefix and squashes the following commits:
5dc2f06 [Reynold Xin] [SPARK-9458] Avoid object allocation in prefix generation.
Diffstat (limited to 'streaming')
0 files changed, 0 insertions, 0 deletions