Inline Entry.contains() 64/98364/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 09:14:51 +0000 (10:14 +0100)
commit6a2330683572946ffd445103da1f9cfd3385e4c6
treea5906b76949d8a08e31853919e9c20e7a5660d7d
parent467ad4b3d5a88f0a26bacb4f4b089c5bcef3d10e
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>
(cherry picked from commit a8ebf0b87a2fd613a5b08bd9e295006415f7de27)
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