BUG-6972: optimize SourceSpecificContext 57/47457/3
authorRobert Varga <rovarga@cisco.com>
Mon, 24 Oct 2016 17:59:48 +0000 (19:59 +0200)
committerRobert Varga <rovarga@cisco.com>
Tue, 25 Oct 2016 09:07:40 +0000 (11:07 +0200)
commitf80cb937cdce794db33e63e0caa4360f485cb8c8
treeabefafc2411f1b8e3162c8799943d1d2c1ec76ee
parent5b290448af7fb73d73ae22b2647c03b2457728fb
BUG-6972: optimize SourceSpecificContext

Statement supports are singletons, do not instantiate
them more than once.

Also make sure we grow importedNamespaces lazily, as there
typically are only a few imports.

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