Optimize readQNameSet() 98/82398/2
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 4 Jun 2019 17:54:22 +0000 (19:54 +0200)
committerTom Pantelis <tompantelis@gmail.com>
Tue, 4 Jun 2019 22:43:18 +0000 (22:43 +0000)
commit11666b718f70c7846cd64ebf949a4e91d84e0e65
tree7dedb2a2d2f8c1481163d791dd2e21177b15286e
parentf99bc16b0122d2e0577033c76207d358311f1d99
Optimize readQNameSet()

We are providing a bad hint to HashSet, as we are not taking
into consideration its load factor. Use utility methods from Guava
to get a properly-sized set.

JIRA: CONTROLLER-1898
Change-Id: I568be3040b924a8ed77aa0224ab45673104c4664
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/LithiumNormalizedNodeInputStreamReader.java