Reuse child NodeIdentifier 58/21758/1
authorRobert Varga <rovarga@cisco.com>
Wed, 3 Jun 2015 12:46:18 +0000 (14:46 +0200)
committerRobert Varga <rovarga@cisco.com>
Wed, 3 Jun 2015 12:46:18 +0000 (14:46 +0200)
commit6416127e56a0fc0f2645823e082a4eaa39142a28
treeef2363f1c70ea22cbe84fe3bd519f753e8ab9515
parent9d9038bca661edf88e1aae971b4c6883983cfb47
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>
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/EffectiveRibInWriter.java