BUG-6522: grow namespaces lazily 85/47585/3
authorRobert Varga <rovarga@cisco.com>
Tue, 25 Oct 2016 17:22:39 +0000 (19:22 +0200)
committerAnil Belur <abelur@linuxfoundation.org>
Sun, 30 Oct 2016 11:46:45 +0000 (11:46 +0000)
commit4705f8012b52d48f45c0a2eb4cc76a9c24ced3e0
treee279f9aab5f85f6dac3587f6ec04ddc9b096d4f5
parentfc760cddecbd779c3387011c9e9a579e93f676d6
BUG-6522: grow namespaces lazily

NamespaceStorageSupport is the superclass of StatementContextBase,
hence allocating a default-sized HashMap results in ~75MiB wasted
space. Add lazy expansion to limit the overhead associated with
tracking these.

This patch includes 885bb2cb055b7786b6a44d490499949380750644.

Change-Id: I0825aee92487c94421ef9e505152bbc5fc7383cb
Signed-off-by: Robert Varga <rovarga@cisco.com>
(cherry picked from commit af16d2e800fbad3b91655214498f8737f915c7ac)
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/reactor/NamespaceStorageSupport.java