Cache YangModuleInfo type name 16/89016/2
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:35:10 +0000 (10:35 +0200)
commitcce3c59c29296ae6db971e65037f998be4b6ad1b
treecb3ec88ad45eba53b49b714a87a027ee1a5d41ce
parent873b0f565d8c8b225ac49d809dea5a3066832427
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