BUG-2459: do not convert NetconfMessage 84/13384/5
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)
commit1c68c2531155313c1f4ec8a2f510f7a9a2db74de
tree56106995dc84b825c95bb4fffb602fa3f3623ce6
parentfbb51f5b6b30c7d444a9ab0a10f3f7e1ef6787d2
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