Switch on method names 75/77875/4
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:58:51 +0000 (11:58 +0100)
commit06f44043bc679e39f54d05394e01a60198086959
tree109f7b7bec320d096977f4700da0f1f22dc14234
parent312facb6827886b2a129b754e416809a2115b878
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>
binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/mdsal/binding/dom/codec/impl/LazyDataObject.java