BUG-8327: GlobalBundleScanningSchemaServiceImpl should be a proxy 00/56300/2
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 28 Apr 2017 14:56:48 +0000 (16:56 +0200)
committerTom Pantelis <tompantelis@gmail.com>
Sun, 30 Apr 2017 20:17:21 +0000 (20:17 +0000)
commitaaf7cce930f8f8b691ae31f83c633f481aa35def
treeb9326659bf57f966d0e1a843ec7a1e82e738e7bb
parenta28880ce101314cf78dc95dee819022c19ad19ac
BUG-8327: GlobalBundleScanningSchemaServiceImpl should be a proxy

We are currently running to separate services which assemble
the GlobalSchemaContext, which hurts our startup performance and
leads to wasted memory. This is an artefact of the mdsal split,
hence we should be getting the service from the MD-SAL and
just proxy to old interfaces.

This lowers the startup time for

feature:install odl-restconf odl-bgpcep-bgp
    odl-bgpcep-data-change-counter odl-netconf-topology

from 86s down to 67s (22%). Final retained heap size is also
lowered from 217MiB to 181MiB (16%)

Change-Id: I549e9512538bd83d86cfd2164d03e34bc9130c1e
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
opendaylight/md-sal/sal-schema-service/pom.xml
opendaylight/md-sal/sal-schema-service/src/main/java/org/opendaylight/controller/sal/schema/service/impl/GlobalBundleScanningSchemaServiceImpl.java
opendaylight/md-sal/sal-schema-service/src/main/java/org/opendaylight/controller/sal/schema/service/impl/SchemaServiceActivator.java [deleted file]
opendaylight/md-sal/sal-schema-service/src/main/resources/org/opendaylight/blueprint/sal-schema-service.xml [new file with mode: 0644]