GitHub user carsonwang opened a pull request:
https://github.com/apache/spark/pull/11071
[SPARK-13185][SQL] Improve the performance of DateTimeUtils by reusing
TimeZone and Calendar objects
It is expensive to create java TimeZone and Calendar objects in each method
of DateTimeUtils. We can reuse the objects to improve the performance. In one
of my Sql queries which calls StringToDate many times, the duration of the
stage improved from 1.6 minutes to 1.2 minutes.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/carsonwang/spark DateTimeUtilsFix
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/11071.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 #11071
----
commit cb9b157525c05c1a3d33b8c820595cf020a21b43
Author: Carson Wang <[email protected]>
Date: 2016-02-04T08:12:59Z
Reuse TimeZone and Calendar objects in DateTimeUtils
----
---
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]