Improve iteration over subnets map by using entrySet instead of keyset. 55/3755/1
authorAlissa Bonas <abonas@redhat.com>
Mon, 16 Dec 2013 14:41:28 +0000 (16:41 +0200)
committerAlissa Bonas <abonas@redhat.com>
Mon, 16 Dec 2013 14:41:28 +0000 (16:41 +0200)
commit92cd19a5961d6de45dd3ea1c8f7c2b4be108cbae
tree69b3437d93bad56f248c6299cf63399104066a91
parentb0e7185fad12a83f2d4afbd74e4bb9a81fd6909c
Improve iteration over subnets map by using entrySet instead of keyset.
It is more efficient to iterate  on the entrySet because
it avoids the Map.get(key) lookup.

Change-Id: I8ec04ebfe5b22b67a488b81987f0d1f8bd1e107d
Signed-off-by: Alissa Bonas <abonas@redhat.com>
opendaylight/switchmanager/implementation/src/main/java/org/opendaylight/controller/switchmanager/internal/SwitchManager.java