diff options
author | Max Kellermann <max.kellermann@ionos.com> | 2024-10-04 11:50:19 +0200 |
---|---|---|
committer | Max Kellermann <max.kellermann@ionos.com> | 2024-10-09 22:39:37 +0200 |
commit | 6c1d2fc2d671233a5a3a5124923dd03c1efa3cc9 (patch) | |
tree | 2b0db0fc09b9facf627784fca4aeaf77320bdc64 | |
parent | Merge pull request #60211 from JonBailey1993/JonBailey1993/ceph_test_rados_io... (diff) | |
download | ceph-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.h | 1 | ||||
-rw-r--r-- | src/common/TrackedOp.h | 1 | ||||
-rw-r--r-- | src/common/intrusive_lru.h | 1 |
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<>, |