Optimize RESTCONF module/node parsing
authorRobert Varga <rovarga@cisco.com>
Sat, 26 Jul 2014 04:41:44 +0000 (06:41 +0200)
committerRobert Varga <rovarga@cisco.com>
Sat, 26 Jul 2014 15:26:41 +0000 (17:26 +0200)
commit97725581929187b0f8ade245902517cba211d6e8
treee02a401a009bc097ddf1966fc6ca3e157e8d633e
parent395d59012b2fb8ca2d01d496c0f5e4ed44be1400
Optimize RESTCONF module/node parsing

Profiling has shown that the current implementations are still not upto
par with what they should be: 189 invocations of the two consumed 64ms,
with most of the time being spent splitting and iterating.

Given that the parsing operation is really simple, we can do much better
using String.indexOf() and String.substring().

Change-Id: I06ef0403edb2c8d12cbbc3c7909091e9efc5138e
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/impl/ControllerContext.java