Inline Entry.contains() 60/98360/1
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 8 Nov 2021 08:22:45 +0000 (09:22 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 8 Nov 2021 08:25:52 +0000 (09:25 +0100)
commita8ebf0b87a2fd613a5b08bd9e295006415f7de27
tree9217e9a393e2b51199a6259c0bf9b369c6affba0
parentec1d15d2b52cb8f378ff685c2c3400b71c5ec360
Inline Entry.contains()

MutableUnsignedLongSet.add() has half of the check done in contains()
as an invariant. Inline the second part there, improving performance a
bit.

Thisleaves only UnsignedLongSet.contains() as the sole caller of
Entry.contains(). Inline it there, reducing the footprint a bit.

JIRA: CONTROLLER-2014
Change-Id: Ie38283a1fc46aff8fbc717a23aa9a068805636db
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/utils/MutableUnsignedLongSet.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/utils/UnsignedLongSet.java