[ http://issues.apache.org/jira/browse/JCR-618?page=all ]

Tobias Bocanegra closed JCR-618.
--------------------------------

    Resolution: Fixed

Committed revision 470747.

> Replace WeakIdentityCollection in StateChangeDispacher
> ------------------------------------------------------
>
>                 Key: JCR-618
>                 URL: http://issues.apache.org/jira/browse/JCR-618
>             Project: Jackrabbit
>          Issue Type: Improvement
>    Affects Versions: 1.1
>            Reporter: Tobias Bocanegra
>         Assigned To: Tobias Bocanegra
>             Fix For: 1.2
>
>
> As a leftover from event refactoring, the listeners in the 
> StateChangeDispatcher are still
> managed by a WeakIdentityCollection and for every notify event, it's 
> synchronized and copied
> into an array. this is very expensive and unnecessary.
> since the addition and removal of listeners is now controlled, and listeners 
> can't just disappear,
> it possible to use a normal collection.
> Suggest to replace the WeakIdentityCollection by a
> 'EDU.oswego.cs.dl.util.concurrent.CopyOnWriteArrayList' that allows read 
> access (and iteration)
> without synchronization.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to