Datastore: lower in-memory change tracking overhead
authorRobert Varga <rovarga@cisco.com>
Mon, 1 Sep 2014 22:09:09 +0000 (00:09 +0200)
committerRobert Varga <rovarga@cisco.com>
Tue, 2 Sep 2014 09:03:35 +0000 (11:03 +0200)
commit5a87825820bd498cb4b680dddb8802ef2251c7a2
tree795313035e68313eac8b492b2c34e11b81f4449c
parent92d542cfc724653b45c0461c91128f6d9eb67e92
Datastore: lower in-memory change tracking overhead

We needlessly track the reference to notification manager inside the
even tasks. Instead simplify the return to a Map.Entry and pipe the
resulted data into the manager. This reduces the temporary size of a
tracker, lowering the rate at which we produce garbage.

Change-Id: Ib390d0e65ce1583371a2e887525d9b7ee0392396
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-inmemory-datastore/src/main/java/org/opendaylight/controller/md/sal/dom/store/impl/ChangeListenerNotifyTask.java [deleted file]
opendaylight/md-sal/sal-inmemory-datastore/src/main/java/org/opendaylight/controller/md/sal/dom/store/impl/InMemoryDOMDataStore.java
opendaylight/md-sal/sal-inmemory-datastore/src/main/java/org/opendaylight/controller/md/sal/dom/store/impl/ResolveDataChangeEventsTask.java