Github user carsonwang commented on the pull request:
https://github.com/apache/spark/pull/10994#issuecomment-179567757
I think we should also reusing a Calendar object in each thread. It is
expensive to create java Calendar and Timezone objects each time the method is
called. I noticed the same problem and I saw performance boost if reusing these
objects. The duration of one stage was improved from 1.6 minutes to 1.2
minutes. @wangyang1992 @rxin
---
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]