Direct schema node lookup in SchemaUtils 04/18204/4
authorMaros Marsalek <mmarsale@cisco.com>
Mon, 13 Apr 2015 15:58:31 +0000 (17:58 +0200)
committerMaros Marsalek <mmarsale@cisco.com>
Wed, 15 Apr 2015 16:26:22 +0000 (16:26 +0000)
commit1dff2e9ac6d7a70deaf9d86f1e314717827c9ba4
tree9befeb1e49ab31aa9f5c3d9502d1286b3a787e2b
parentc7c67c1ad9fbd77e2705345400f1db5b3d46e200
Direct schema node lookup in SchemaUtils

SchemaUtils.findSchemaForChild now looks up child schema node
directly by querying the parent schema node and uses the
iterative/recursive lookup as fallback.

This is a performance improvement that bypasses the recursive
lookup if possible.

Change-Id: I888e767310713efd42428ef58caf959651643f49
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/SchemaUtils.java