diff options
| author | Alan Conway <aconway@apache.org> | 2011-06-15 20:15:51 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2011-06-15 20:15:51 +0000 |
| commit | 4cb595e5f5a3f68b4abb1e1aca1922269fa2b559 (patch) | |
| tree | 6d2f930af52b5f4aa1e035e2b5cb48ee5182da4b /qpid/cpp/include | |
| parent | 888505626d5fd5b8eee141017617d894eb0cc16f (diff) | |
| download | qpid-python-4cb595e5f5a3f68b4abb1e1aca1922269fa2b559.tar.gz | |
QPID-3280: Performance problem with TTL messages.
When sending a large number of messages with nonzero TTLs to a
cluster, overall message throughput drops by around 20-30% compared to
messages with TTL 0.
The previous approach to TTL in the cluster is replaced with a simpler
"cluster clock". Also QueueCleaner is executed in the cluster timer,
and modified to be deterministic in a cluster.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1136170 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/include')
| -rw-r--r-- | qpid/cpp/include/qpid/framing/FieldTable.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qpid/cpp/include/qpid/framing/FieldTable.h b/qpid/cpp/include/qpid/framing/FieldTable.h index fed431129a..e8ec524863 100644 --- a/qpid/cpp/include/qpid/framing/FieldTable.h +++ b/qpid/cpp/include/qpid/framing/FieldTable.h @@ -65,6 +65,8 @@ class FieldTable QPID_COMMON_EXTERN void decode(Buffer& buffer); QPID_COMMON_EXTERN int count() const; + QPID_COMMON_EXTERN size_t size() const { return values.size(); } + QPID_COMMON_EXTERN bool empty() { return size() == 0; } QPID_COMMON_EXTERN void set(const std::string& name, const ValuePtr& value); QPID_COMMON_EXTERN ValuePtr get(const std::string& name) const; QPID_COMMON_INLINE_EXTERN bool isSet(const std::string& name) const { return get(name).get() != 0; } |
