BUG-1493: do not instantiate HashSet 60/9760/5
authorRobert Varga <rovarga@cisco.com>
Wed, 6 Aug 2014 18:01:24 +0000 (20:01 +0200)
committerRobert Varga <rovarga@cisco.com>
Thu, 7 Aug 2014 14:23:53 +0000 (16:23 +0200)
commit6090fc247eae9ba06e64eb6060ee71acce21f2d3
tree496a9c0501f7c8624afa3b39c6ec4036f566e0a3
parentaa16c6b860255d4509f240fbcb416b8d3d6c0232
BUG-1493: do not instantiate HashSet

This HashSet is used to track processed nodes -- but the parent node is
already giving us a method, which checks if it contains a particular
node ID. Let's use that instead of maintaining the set.

Based on traces, this should speed the datastore up by about 4.8%.

Change-Id: I09e1135f51c8967b9fe8c520a0e166918472de7d
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/ResolveDataChangeEventsTask.java