BUG-6522: grow namespaces lazily 50/47550/2
authorRobert Varga <rovarga@cisco.com>
Tue, 25 Oct 2016 17:22:39 +0000 (19:22 +0200)
committerRobert Varga <nite@hq.sk>
Wed, 26 Oct 2016 08:41:16 +0000 (08:41 +0000)
commitaf16d2e800fbad3b91655214498f8737f915c7ac
treee7e3a0c29eb17b56d8f828a9487d5d26e9b5b366
parent9455adbdd7de21d8da1a3bf6919db7f36dfba165
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.

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