Github user pwendell commented on the pull request:

    https://github.com/apache/spark/pull/179#issuecomment-38084443
  
    Hey @zsxwing thanks for reporting this and proposing a fix!
    
    The way it is now has some performance implications because it creates a 
new date format every time one is needed. I'd suggest instead that each of the 
individual pages/tables should create a date format as a `val` and then re-use 
it. A single page/table cannot be access concurrently from multiple threads, so 
this is safe.
    
    To make this easy we can add a utility function called `createDateFormat` 
inside of the `WebUI` object.


---
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.
---

Reply via email to