Reuse child NodeIdentifier 90/21790/2
authorRobert Varga <rovarga@cisco.com>
Wed, 3 Jun 2015 12:46:18 +0000 (14:46 +0200)
committerGerrit Code Review <gerrit@opendaylight.org>
Wed, 3 Jun 2015 17:58:10 +0000 (17:58 +0000)
commit5e7e588f9f103524252a945637e97fc173bf201e
treeb9a529150da8c53c929a255d25ee556bc7c91bc9
parent02adb64da745fbce90bf1f0c688e4c61c27590cc
Reuse child NodeIdentifier

We effectively create two YangInstanceIdentifiers for the same thing,
except for routes we end up creating a different instance of
NodeIdentifier, which forces a slower comparison. Reuse the same
identifier, lowring memory pressure and increasing performance slightly.

Change-Id: I80e8ffa89737476040727f45a8b90bd157527955
Signed-off-by: Robert Varga <rovarga@cisco.com>
(cherry picked from commit 6416127e56a0fc0f2645823e082a4eaa39142a28)
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/EffectiveRibInWriter.java