diff options
| author | Alan Conway <aconway@apache.org> | 2007-11-16 20:16:23 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2007-11-16 20:16:23 +0000 |
| commit | 493b528a6ba5961613d4ecea7b81f5b3638dc3d9 (patch) | |
| tree | 1a64a1498a5d50e0ed5c7bc4dec625ec8aa1e78d /cpp/src/qpid/broker/SemanticState.h | |
| parent | c31a7344ed65dc8201067b95f1a78d1c393e217b (diff) | |
| download | qpid-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.h')
| -rw-r--r-- | cpp/src/qpid/broker/SemanticState.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/broker/SemanticState.h b/cpp/src/qpid/broker/SemanticState.h index ea58a74f45..8e039d554b 100644 --- a/cpp/src/qpid/broker/SemanticState.h +++ b/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); |
