Improve YangInstanceIdentifierDeserializer.checkValid() 90/97790/4
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 6 Oct 2021 08:18:23 +0000 (10:18 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 6 Oct 2021 08:40:24 +0000 (10:40 +0200)
commit5a1175154e66722370ed783a1200aaebbbcbb567
treee68f95798b2e873fddfe8ec1850363d8b7dffa1d
parent596c70df7c285f16a302ff5edf1d6ad04c32f182
Improve YangInstanceIdentifierDeserializer.checkValid()

The current implementation is slow due to always playing with arguments,
even when we do not use them. As it turns out, a bit of restructuring
allows us to make this a lot saner and performant.

Change-Id: Ic5de0d473fe203703470252b32e54b2e3c325f5e
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/utils/parser/YangInstanceIdentifierDeserializer.java