summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/broker/SemanticState.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2007-11-16 20:16:23 +0000
committerAlan Conway <aconway@apache.org>2007-11-16 20:16:23 +0000
commit493b528a6ba5961613d4ecea7b81f5b3638dc3d9 (patch)
tree1a64a1498a5d50e0ed5c7bc4dec625ec8aa1e78d /cpp/src/qpid/broker/SemanticState.cpp
parentc31a7344ed65dc8201067b95f1a78d1c393e217b (diff)
downloadqpid-python-493b528a6ba5961613d4ecea7b81f5b3638dc3d9.tar.gz
Added qpid::InlineVector - std::vector with inline storage to avoid
heap allocation for small vectors. Made SequenceNumberSet : public InlineVector<SequenceNumber, 2> In 100k perftest reduces heap allocation in client by 40%, broker 9%. . git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@595808 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/SemanticState.cpp')
-rw-r--r--cpp/src/qpid/broker/SemanticState.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/broker/SemanticState.cpp b/cpp/src/qpid/broker/SemanticState.cpp
index 270cdca731..e790e087f0 100644
--- a/cpp/src/qpid/broker/SemanticState.cpp
+++ b/cpp/src/qpid/broker/SemanticState.cpp
@@ -616,7 +616,7 @@ AckRange SemanticState::findRange(DeliveryId first, DeliveryId last)
return AckRange(start, end);
}
-void SemanticState::acquire(DeliveryId first, DeliveryId last, std::vector<DeliveryId>& acquired)
+void SemanticState::acquire(DeliveryId first, DeliveryId last, DeliveryIds& acquired)
{
Mutex::ScopedLock locker(deliveryLock);
AckRange range = findRange(first, last);