Cache YangModuleInfo type name 17/89017/1
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 18 Dec 2019 09:05:15 +0000 (10:05 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 10 Apr 2020 08:22:22 +0000 (10:22 +0200)
commitbf85c3de400569711fd64cfc57de88e61de696df
treed6fa814d5bb41cc4bba898384bb21439f624b2ce
parenta1a6144b0fc5baa9b99fe314a43363f6c6a5e283
Cache YangModuleInfo type name

Analysis of a heap dump shows we are creating a number of instances
pointing to the same type for the purposes of having the QNAME constant.

As we have the context in which we are creating YangModuleInfo,
instantiate a primitive cache to de-duplicate these definitions.

JIRA: MDSAL-515
Change-Id: I9bb52d04627e91eac3adff672b06f6340cac157f
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
binding/mdsal-binding-generator-impl/src/main/java/org/opendaylight/mdsal/binding/generator/impl/AbstractTypeGenerator.java
binding/mdsal-binding-generator-impl/src/main/java/org/opendaylight/mdsal/binding/generator/impl/ModuleContext.java