summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/qpid/broker/SemanticState.h
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
commitb0ef955830e19e14b10eb7ada9c51896514dd5f4 (patch)
tree4774b246e66f9afdde8f0bd5dca963839f51d7fb /qpid/cpp/src/qpid/broker/SemanticState.h
parent1d2c8c9667095e631bb2e9664845869174f10085 (diff)
downloadqpid-python-b0ef955830e19e14b10eb7ada9c51896514dd5f4.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@595808 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/qpid/broker/SemanticState.h')
-rw-r--r--qpid/cpp/src/qpid/broker/SemanticState.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/broker/SemanticState.h b/qpid/cpp/src/qpid/broker/SemanticState.h
index ea58a74f45..8e039d554b 100644
--- a/qpid/cpp/src/qpid/broker/SemanticState.h
+++ b/qpid/cpp/src/qpid/broker/SemanticState.h
@@ -184,7 +184,7 @@ class SemanticState : public framing::FrameHandler::Chains,
void recover(bool requeue);
void flow(bool active);
DeliveryId redeliver(QueuedMessage& msg, DeliveryToken::shared_ptr token);
- void acquire(DeliveryId first, DeliveryId last, std::vector<DeliveryId>& acquired);
+ void acquire(DeliveryId first, DeliveryId last, DeliveryIds& acquired);
void release(DeliveryId first, DeliveryId last);
void reject(DeliveryId first, DeliveryId last);
void handle(intrusive_ptr<Message> msg);