From: Max Kellermann Date: Fri, 4 Oct 2024 09:50:19 +0000 (+0200) Subject: various: disable `boost::intrusive::constant_time_size` X-Git-Tag: v20.0.0~184^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3ee1ce7faa68ab158ec96b0e7b58e8759813e5ad;p=ceph.git various: 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 --- diff --git a/src/blk/aio/aio.h b/src/blk/aio/aio.h index cf21c416731..abb48dca552 100644 --- a/src/blk/aio/aio.h +++ b/src/blk/aio/aio.h @@ -88,6 +88,7 @@ std::ostream& operator<<(std::ostream& os, const aio_t& aio); typedef boost::intrusive::list< aio_t, + boost::intrusive::constant_time_size, boost::intrusive::member_hook< aio_t, boost::intrusive::list_member_hook<>, diff --git a/src/client/barrier.h b/src/client/barrier.h index 289a3a5212f..572c1164ba1 100644 --- a/src/client/barrier.h +++ b/src/client/barrier.h @@ -45,6 +45,7 @@ class BarrierContext; class C_Block_Sync; typedef boost::intrusive::list< C_Block_Sync, + boost::intrusive::constant_time_size, boost::intrusive::member_hook< C_Block_Sync, boost::intrusive::list_member_hook<>, @@ -68,6 +69,7 @@ public: }; typedef boost::intrusive::list< Barrier, + boost::intrusive::constant_time_size, boost::intrusive::member_hook< Barrier, boost::intrusive::list_member_hook<>,