Cache YangModuleInfo type name 69/86469/9
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 18 Dec 2019 09:05:15 +0000 (10:05 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 9 Apr 2020 20:31:12 +0000 (22:31 +0200)
commit6b436f024d544df1cb2ab05b4619c3261433d25c
treeacce5f06cd8b4fbaf72adfa7c9c0c95f876c52d2
parent3ece0eb9b209975b84495ccfb09aa2a71a058fc7
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