Switch on method names 83/77883/3
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 16 Nov 2018 06:51:27 +0000 (07:51 +0100)
committerRobert Varga <nite@hq.sk>
Wed, 21 Nov 2018 11:10:19 +0000 (11:10 +0000)
commitc546db6bbffcb6fbbf89252f703ca7e642b495a6
treedff625c0b57f115aec1851d05650bc67dfa9d500
parent18904838db7c72c16e083c63c4d9718c8059bae3
Switch on method names

Method names are guarateed to be interned by the JVM, hence their
hashCode is O(1) -- making them a prime target for a switch statement,
which side-steps the need to run String.equals() slow path most of
the time.

JIRA: MDSAL-398
Change-Id: Ie57c2f9fd8c3757ec08e1be945b08d66ebbcff4e
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit b4db803c07b50d2f3f7977e0509dbb60724c4b1d)
binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/mdsal/binding/dom/codec/impl/LazyDataObject.java