You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Jukka Zitting (Issue Comment Edited) (JIRA)" <ji...@apache.org> on 2012/02/17 16:12:00 UTC

[jira] [Issue Comment Edited] (TIKA-864) Metadata.formatDate causes blocking in concurrent use

    [ https://issues.apache.org/jira/browse/TIKA-864?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13210313#comment-13210313 ] 

Jukka Zitting edited comment on TIKA-864 at 2/17/12 3:10 PM:
-------------------------------------------------------------

bq. perhaps the best solution here is just to add a bit of custom code that formats the requested string directly

Done in revision 1245600.
                
      was (Author: jukkaz):
    bq. perhaps the best solution here is
just to add a bit of custom code that formats the requested string directly

Done in revision 1245600.
                  
> Metadata.formatDate causes blocking in concurrent use
> -----------------------------------------------------
>
>                 Key: TIKA-864
>                 URL: https://issues.apache.org/jira/browse/TIKA-864
>             Project: Tika
>          Issue Type: Improvement
>          Components: metadata
>            Reporter: Andrzej Bialecki 
>            Assignee: Jukka Zitting
>             Fix For: 1.1
>
>
> 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