summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max.kellermann@ionos.com>2024-10-04 11:50:19 +0200
committerMax Kellermann <max.kellermann@ionos.com>2024-10-09 22:39:37 +0200
commit6c1d2fc2d671233a5a3a5124923dd03c1efa3cc9 (patch)
tree2b0db0fc09b9facf627784fca4aeaf77320bdc64
parentMerge pull request #60211 from JonBailey1993/JonBailey1993/ceph_test_rados_io... (diff)
downloadceph-6c1d2fc2d671233a5a3a5124923dd03c1efa3cc9.tar.xz
ceph-6c1d2fc2d671233a5a3a5124923dd03c1efa3cc9.zip
common: disable `boost::intrusive::constant_time_size`
By default, the Boost intrusive containers enable the `constant_time_size` option which adds overhead to each modification for tracking the size in a field. We don't need that. Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
-rw-r--r--src/common/LRUSet.h1
-rw-r--r--src/common/TrackedOp.h1
-rw-r--r--src/common/intrusive_lru.h1
3 files changed, 3 insertions, 0 deletions
diff --git a/src/common/LRUSet.h b/src/common/LRUSet.h
index b62956ba460..c8c66e85458 100644
--- a/src/common/LRUSet.h
+++ b/src/common/LRUSet.h
@@ -43,6 +43,7 @@ class LRUSet {
// lru
boost::intrusive::list<
Node,
+ boost::intrusive::constant_time_size<false>,
boost::intrusive::member_hook<Node,
boost::intrusive::list_member_hook<>,
&Node::lru_item>
diff --git a/src/common/TrackedOp.h b/src/common/TrackedOp.h
index f4cf8902dac..57d73038364 100644
--- a/src/common/TrackedOp.h
+++ b/src/common/TrackedOp.h
@@ -243,6 +243,7 @@ private:
public:
typedef boost::intrusive::list<
TrackedOp,
+ boost::intrusive::constant_time_size<false>,
boost::intrusive::member_hook<
TrackedOp,
boost::intrusive::list_member_hook<>,
diff --git a/src/common/intrusive_lru.h b/src/common/intrusive_lru.h
index 564cceef1cc..3ed3625d8a0 100644
--- a/src/common/intrusive_lru.h
+++ b/src/common/intrusive_lru.h
@@ -125,6 +125,7 @@ class intrusive_lru {
using lru_list_t = boost::intrusive::list<
base_t,
+ boost::intrusive::constant_time_size<false>,
boost::intrusive::member_hook<
base_t,
boost::intrusive::list_member_hook<>,