Improve stored map memory efficiency 62/22262/3
authorRobert Varga <rovarga@cisco.com>
Wed, 10 Jun 2015 09:25:01 +0000 (11:25 +0200)
committerGerrit Code Review <gerrit@opendaylight.org>
Thu, 11 Jun 2015 08:06:57 +0000 (08:06 +0000)
commit877489ac0ab40d8a0d71fe041f9c8ea66a7e3446
tree68974f75763efcc1e50dd8b7e7871cc920a1db41
parent2e0878d894f821db411c87f2ffff094e9b32b5ee
Improve stored map memory efficiency

When we deal with small maps, we can improve our memory efficiency by
turning it into an ImmutableMap instead of wrapping it in another
instance.

For 1M fake BGP routes, this lowers the memory footprint by ~300MB,
which is about 10%.

Change-Id: I7fbac729f635ea089ac144e8a264df884d94c512
Signed-off-by: Robert Varga <rovarga@cisco.com>
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/nodes/UnmodifiableChildrenMap.java