BUG-8327: GlobalBundleScanningSchemaServiceImpl should be a proxy 03/56303/1
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 28 Apr 2017 14:56:48 +0000 (16:56 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Sun, 30 Apr 2017 19:27:56 +0000 (21:27 +0200)
commitca7d831361dd318158b7737104a9a52d63e09944
treea36cee92c874387a0d01148b5e3b3cbb4548fbf3
parenteff76fdd3d3ed3570aed964f8715312a01ef3a37
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>
(cherry picked from commit 3127a42ac3a743d58f5d529ef82b779682fa7566)
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]