BUG-1275: optimize AugmentationSchemaProxy for lookup speed 62/8562/1
authorRobert Varga <rovarga@cisco.com>
Wed, 2 Jul 2014 16:42:18 +0000 (18:42 +0200)
committerRobert Varga <rovarga@cisco.com>
Wed, 2 Jul 2014 16:42:18 +0000 (18:42 +0200)
commit4a0b9b0a117d39d5954a03c03f3c3caa370d5631
tree9ac73125ff8df3a6344e45acc7151a96cff909f6
parenta685bdcdc684bc727308c8479f5c8807f776a809
BUG-1275: optimize AugmentationSchemaProxy for lookup speed

This patch uses ImmutableMap to bias the map from creation speed to
lookup performance. Also, in the lookup path we perform a single lookup,
and check the null result, instead of contains() followed by a lookup.

Change-Id: Iba50dc5fae7ef87da79072be4936690587f46018
Signed-off-by: Robert Varga <rovarga@cisco.com>
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/transform/base/AugmentationSchemaProxy.java