Improve BindingDOMRpcImplementationAdapter performance 18/21318/4
authorRobert Varga <rovarga@cisco.com>
Thu, 28 May 2015 11:20:30 +0000 (13:20 +0200)
committerGerrit Code Review <gerrit@opendaylight.org>
Thu, 28 May 2015 17:15:57 +0000 (17:15 +0000)
commitc4ee9b293370b81b76cc0e06accf3cde31ac1722
tree4cf66342c0553d90c0b1ef4252220c000600045e
parent1fe1afe3789315a939f046550f186c583ef5a39e
Improve BindingDOMRpcImplementationAdapter performance

BindingReflections return a non-shared QNameModule instance, which means
that we may end up using suboptimal lookups when comparing QNames.
Furthermore it is not the QNameModule which we need in the fastpath, but
rather QName of the input statement, hence create a cached reference of
that -- leading to minimal object allocation in the fast path.

Change-Id: I97ceb43d80c50d53d21cc66a31bfaae6ff0193e9
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/impl/BindingDOMRpcImplementationAdapter.java