diff options
| author | Alan Conway <aconway@apache.org> | 2007-11-14 21:02:14 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2007-11-14 21:02:14 +0000 |
| commit | b7c4bf711917dc5ae07fafea32d9d530d2383735 (patch) | |
| tree | d187fc43d3d0a2153d1b8c2a5ab3e55261285e9d /cpp/src/qpid/broker/IncomingExecutionContext.h | |
| parent | 30e952c5e9e7084eb70633a543034fbc897a22b8 (diff) | |
| download | qpid-python-b7c4bf711917dc5ae07fafea32d9d530d2383735.tar.gz | |
Replaced shared_ptr with intrusive_ptr for qpid::Broker::Message.
Gives 9% reduction in broker heap use (perftest --count 100000.)
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@595056 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/IncomingExecutionContext.h')
| -rw-r--r-- | cpp/src/qpid/broker/IncomingExecutionContext.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/qpid/broker/IncomingExecutionContext.h b/cpp/src/qpid/broker/IncomingExecutionContext.h index 1e4a394be6..3056c2b4bc 100644 --- a/cpp/src/qpid/broker/IncomingExecutionContext.h +++ b/cpp/src/qpid/broker/IncomingExecutionContext.h @@ -30,7 +30,7 @@ namespace broker { class IncomingExecutionContext { - typedef std::list<Message::shared_ptr> Messages; + typedef std::list<intrusive_ptr<Message> > Messages; framing::Window window; framing::AccumulatedAck completed; Messages incomplete; @@ -45,7 +45,7 @@ public: void sync(const framing::SequenceNumber& point); framing::SequenceNumber next(); void complete(const framing::SequenceNumber& command); - void track(Message::shared_ptr); + void track(intrusive_ptr<Message>); const framing::SequenceNumber& getMark(); framing::SequenceNumberSet getRange(); |
