Speed up inputQueue interaction 72/86272/3
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 5 Dec 2019 20:52:08 +0000 (21:52 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 9 Dec 2019 09:50:14 +0000 (10:50 +0100)
commitc6337f51aaa8097bc16fac345315c47d3e28b882
tree9c6a48b2e614ad58184e4ca922406516af151360
parentff4883df8a16d34da543169a2957bbefe867d427
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