jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JCR-618) Replace WeakIdentityCollection in StateChangeDispacher
Date Sun, 17 Dec 2006 23:34:25 GMT
     [ http://issues.apache.org/jira/browse/JCR-618?page=all ]

Jukka Zitting updated JCR-618:
------------------------------

    Affects Version/s:     (was: 1.1)

> Replace WeakIdentityCollection in StateChangeDispacher
> ------------------------------------------------------
>
>                 Key: JCR-618
>                 URL: http://issues.apache.org/jira/browse/JCR-618
>             Project: Jackrabbit
>          Issue Type: Improvement
>            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

        

Mime
View raw message