[ https://issues.apache.org/jira/browse/TIKA-864?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13210238#comment-13210238 ]
Andrzej Bialecki commented on TIKA-864: ---------------------------------------- Good point. Maybe Tika should use Joda-Time instead of the built-in DateFormat and Calendar classes - not only it's much faster but also provides thread-safe classes for date parsing and formatting (http://joda-time.sourceforge.net/api-release/org/joda/time/format/DateTimeFormat.html) > Metadata.formatDate should use ThreadLocal > ------------------------------------------ > > Key: TIKA-864 > URL: https://issues.apache.org/jira/browse/TIKA-864 > Project: Tika > Issue Type: Improvement > Components: metadata > Reporter: Andrzej Bialecki > > Currently this is a synchronized method that uses a single instance of > DateFormat. Instead it could use a pool of ThreadLocal DateFormat instances > and avoid the sync blocking. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira