Speedup ModuleShardStrategy a bit 89/14489/1
authorRobert Varga <rovarga@cisco.com>
Mon, 26 Jan 2015 13:40:23 +0000 (14:40 +0100)
committerRobert Varga <rovarga@cisco.com>
Mon, 26 Jan 2015 14:38:17 +0000 (15:38 +0100)
commit7085afacb0da42beab67dde5fc78e55e1bc98ed5
treec457837f78d3fe1fdfaf4461563f91c382a4efe1
parentb5310f51df01f07cac372a97f66e0ef0fefa7264
Speedup ModuleShardStrategy a bit

Using isEmpty() is a bit faster, as it allows us to side-step a
subsequent comparison.

Change-Id: If2470ac293f0678e7bf158fccc00f263ed73a207
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/shardstrategy/ModuleShardStrategy.java