Speed up StackedOutboundQueue.reserve() 21/22021/7
authorRobert Varga <rovarga@cisco.com>
Sat, 6 Jun 2015 02:02:50 +0000 (04:02 +0200)
committerRobert Varga <rovarga@cisco.com>
Tue, 9 Jun 2015 13:31:18 +0000 (15:31 +0200)
commit45547dc0381407ec537a924447ff9ce0d01890b2
tree2e63546cbbba96bb9736f9504dfcff33ceec4dcf
parentd7755318c0395f3f74ca580f4e2db963976776aa
Speed up StackedOutboundQueue.reserve()

In the case of multiple segments being present, we do not need to
completely synchronize if the corresponding segment has already been
allocated. Communicate this fact when allocating segments and check this
flag before embarking on the entire synchronized affair during
reserve().

Change-Id: I10a9ecb141f619b94a20d74152124134d36591b1
Signed-off-by: Robert Varga <rovarga@cisco.com>
openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/connection/StackedOutboundQueue.java
openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/connection/StackedSegment.java