Switch on method names 88/77888/2
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 16 Nov 2018 06:51:27 +0000 (07:51 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 16 Nov 2018 10:57:20 +0000 (11:57 +0100)
commit55ffba46691c080e898be3d738eb877f132f7b90
tree7abd054d4441e4b356b819aaeece244c5823a8cb
parent01313c7cc414166cdcac4a98b56cdc5c5ecd1066
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