You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Tobias Bocanegra (JIRA)" <ji...@apache.org> on 2008/02/12 10:05:12 UTC
[jira] Commented: (JCR-1371) [PATCH] unnecessary synchronized
collections used only in thread safe way
[ 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 executed?
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.