BUG-509: improve memory efficiency of ListenerTree 32/6032/1
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)
commit8863de0dcb11c160ea067fb157bb95502f49e400
treea419fee6c441cae3e3e0a2bf4d536dd698e077ac
parent4312c58d37c9e1ad27d6cf228eda0ba3f7501a0c
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