Do not use ClassToInstanceMap in AugmentableCodecDataObject 53/81853/2
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 1 May 2019 15:05:46 +0000 (17:05 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 1 May 2019 15:08:42 +0000 (17:08 +0200)
commit39c1a86be4bb3ebc4e1e5033a652048366b64ef9
treed2c2c3146aaac888fb53531715cb32d22007d812
parentecc04151d70dbab090ebcb0cb2a1a4440660eba3
Do not use ClassToInstanceMap in AugmentableCodecDataObject

ImmutableClassToInstanceMap is implemented using delegation,
which means we end up allocating one more object than we really
need and are also adding an indirection.

Drop back to using a plain ImmutableMap, so as to reduce memory
pressure.

JIRA: MDSAL-442
Change-Id: I6832eb8f012a2d003d3a2158009305a09f6c7832
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/mdsal/binding/dom/codec/impl/AugmentableCodecDataObject.java