jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tobias Bocanegra (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JCR-1371) [PATCH] unnecessary synchronized collections used only in thread safe way
Date Tue, 12 Feb 2008 09:05:12 GMT

    [ https://issues.apache.org/jira/browse/JCR-1371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12568009#action_12568009

Tobias Bocanegra commented on JCR-1371:

well, of course unsync. collections would be better. but how often is the nodetype reader
only once during startup and this saves you maybe 1msec :-)

> [PATCH] unnecessary synchronized collections used only in thread safe way
> -------------------------------------------------------------------------
>                 Key: JCR-1371
>                 URL: https://issues.apache.org/jira/browse/JCR-1371
>             Project: Jackrabbit
>          Issue Type: Improvement
>          Components: jackrabbit-core
>    Affects Versions: 1.4.1
>            Reporter: Dave Brosius
>            Priority: Minor
>             Fix For: 1.4.1
>         Attachments: local_synchronized_collections.patch
> NodeTypeReader uses Vector in only a local variable thread safe way. Thus the synchronized
value of Vector is not needed, and just slowing the code down for nothing. this patch switches
the collections to ArrayLists.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message