BUG-2459: do not convert NetconfMessage
authorRobert Varga <rovarga@cisco.com>
Thu, 4 Dec 2014 22:55:47 +0000 (23:55 +0100)
committerTony Tkacik <ttkacik@cisco.com>
Mon, 8 Dec 2014 09:02:41 +0000 (09:02 +0000)
commit326a4d0c04172657528d6d32a03f6beaa9dbf0d4
treed3120265c8fe9156cb11efea12a807e01f24ceb6
parent8ce5771883840d100262dcb31f52bceac5bf6a2d
BUG-2459: do not convert NetconfMessage

Router's onNetconfMessage shows up as a hotspot in performance traces,
which turns out to be another case of coversion of XML document to a
string just for debugging/error handling purposes.

In case of a debug + error we are taking the hit of one toString()
operation, but that should be fine. We make that up by being smarter
about creating maps in the error path.

Change-Id: I78ec6ad44c4689b67bbc51184465c5092b0d8657
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/netconf/netconf-impl/src/main/java/org/opendaylight/controller/netconf/impl/osgi/NetconfOperationRouterImpl.java