BUG-2350: optimize SchemaRootCodecContext.getYangIdentifierChild() 93/13793/3
authorRobert Varga <rovarga@cisco.com>
Sat, 20 Dec 2014 23:15:39 +0000 (00:15 +0100)
committerRobert Varga <rovarga@cisco.com>
Wed, 24 Dec 2014 12:57:22 +0000 (13:57 +0100)
commit3c8c97d208f4132ad5e5a54497a29512014b7894
tree8bd146c917ca8c6ca0b04172597333ebcbf6d1be
parentabd991069091dc926f46c8504f433daa5d1911cf
BUG-2350: optimize SchemaRootCodecContext.getYangIdentifierChild()

This particular method has been found to dominate deletion-heavy
workloads, where it can account for up to 30% of time due to loading of
classes.

Eliminate this cost by instantiating a LoadingCache, which short-cuts
the class load.

Change-Id: I45c3f4acd67d85da30f26b71f73226a5beaf2876
Signed-off-by: Robert Varga <rovarga@cisco.com>
code-generator/binding-data-codec/src/main/java/org/opendaylight/yangtools/binding/data/codec/impl/SchemaRootCodecContext.java