Improve BindingDOMRpcImplementationAdapter performance 82/22082/3
authorRobert Varga <rovarga@cisco.com>
Thu, 28 May 2015 11:20:30 +0000 (13:20 +0200)
committerGerrit Code Review <gerrit@opendaylight.org>
Mon, 8 Jun 2015 11:29:36 +0000 (11:29 +0000)
commit2f6b919c0f3c1d5cc4aa9b9fd41458716835df81
tree72909fda81c7a9a4b3b84b8578e1099626d33f06
parent5f55609cfda935a269e29e5bcdd477e11191d5c4
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>
(cherry picked from commit c4ee9b293370b81b76cc0e06accf3cde31ac1722)
opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/impl/BindingDOMRpcImplementationAdapter.java