Speed up inputQueue interaction 43/86243/5
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 5 Dec 2019 20:52:08 +0000 (21:52 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Sun, 8 Dec 2019 18:12:52 +0000 (19:12 +0100)
commit88ef3ac086633022fc073c6af9a26958b86382b7
tree98b47b0e15a2c18ec84534a2b5e5726a1f689445
parent3deebee20016fdbfa1bfd86b3b4410c009ab9771
Speed up inputQueue interaction

The while() loop here is an open-coded Queue.drainTo(). Read the API
and lead a happy life (knowing the thread contention is much lower
now).

This should help with our ability to drain the input queue more
quickly as we will have less cacheline thrashing.

JIRA: OVSDB-428
Change-Id: I53f3b24fb354dd0b727de26cc55890a70994ae8f
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
hwvtepsouthbound/hwvtepsouthbound-impl/src/main/java/org/opendaylight/ovsdb/hwvtepsouthbound/transactions/md/TransactionInvokerImpl.java
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/transactions/md/TransactionInvokerImpl.java