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] Created: (JCR-618) Replace WeakIdentityCollection in StateChangeDispacher
Date Fri, 03 Nov 2006 09:32:16 GMT
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

        

Mime
View raw message