Optimize IdentifiableItemCodec 33/78133/4
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 23 Nov 2018 00:30:08 +0000 (01:30 +0100)
committerRobert Varga <nite@hq.sk>
Mon, 26 Nov 2018 21:22:20 +0000 (21:22 +0000)
commit72fe0475a93c18ee47f72a01488bb12b35fa603d
tree71ba0936d0e8f322a4486f69914110f8c92c5dd1
parent66115b161186d2bd1b62b3801c519d061dca2518
Optimize IdentifiableItemCodec

ImmutableMapTemplate allows us to instantiate space-efficient
ImmutableOffsetMaps very quickly, because we know exactly what
keySet() we are going to use, including our preferred ordering.

Use this class to instantiate keyValueContexts and also create
NodeIdentifierWithPredicates.

JIRA: YANGTOOLS-917
Change-Id: I087083fe4e1914bb5d8e58b9e378ebda9e070793
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit f6557f4f6831805301ea4690596310fcc03247c3)
binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/mdsal/binding/dom/codec/impl/IdentifiableItemCodec.java