From: Robert Varga Date: Wed, 29 May 2019 10:10:52 +0000 (+0200) Subject: Optimize NodeIdentifier reading X-Git-Tag: release/neon-sr2~30 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=8edae6ac0a05f2f6263241ce132061aceeae2f04;hp=8edae6ac0a05f2f6263241ce132061aceeae2f04;p=controller.git Optimize NodeIdentifier reading NodeIdentifiers are just an alias for QName, which is heavily reused. This patch adds a secondary cache for interpreting QNames as NodeIdentifiers, with instance reuse. This allows us to reduce the number of NodeIdentifier instances, while not relying on NodeIdentifier.create() for the common lookup case. JIRA: CONTROLLER-1898 Change-Id: Ifa0c5d572f7d39da49707529c7ddd9c9f36f2dab Signed-off-by: Robert Varga (cherry picked from commit 5f540931c1f8972b59e51556b6cba14b2c8f3f40) ---