BUG-509: improve memory efficiency of ListenerTree
authorRobert Varga <rovarga@cisco.com>
Thu, 10 Apr 2014 16:59:45 +0000 (18:59 +0200)
committerRobert Varga <rovarga@cisco.com>
Thu, 10 Apr 2014 17:35:41 +0000 (19:35 +0200)
commitdaaf2123c442a36ffe8bc697261f74ae2115621f
tree98e68d7bdca05f80ff68be888eba38bba785b26e
parentd4a085aeb60c302fc66710cf598034b3c2609798
BUG-509: improve memory efficiency of ListenerTree

As it turns out, we do not need a Set<>, but rather a collection. We do
not expect major modifications of listeners, but memory efficiency and
iteration speed are required. Thus turn the HashSet into an ArrayList.

Also rename DataChangeListenerRegistration to
DataChangeListenerRegistrationImpl, so that the interface itself can be
imported and used as a shortname. This has the nice effect of rendering
a nasty SuppressWarnings completely unneeded.

Change-Id: I100337651c3b42c715978708bc98cf24ce5bf703
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/md/sal/dom/store/impl/tree/ListenerTree.java