]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
various: disable `boost::intrusive::constant_time_size`
authorMax Kellermann <max.kellermann@ionos.com>
Fri, 4 Oct 2024 09:50:19 +0000 (11:50 +0200)
committerMax Kellermann <max.kellermann@ionos.com>
Wed, 13 Nov 2024 19:59:13 +0000 (20:59 +0100)
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>
src/blk/aio/aio.h
src/client/barrier.h

index cf21c416731634066cdea1ef7d3e01a9ad2b7713..abb48dca552730b572153f2acefb99ffc20834bc 100644 (file)
@@ -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<false>,
   boost::intrusive::member_hook<
     aio_t,
     boost::intrusive::list_member_hook<>,
index 289a3a5212f3508df21a37bb31cddc2f6db85ab8..572c1164ba19bf18a16194aca4935f92e4f89b45 100644 (file)
@@ -45,6 +45,7 @@ class BarrierContext;
 class C_Block_Sync;
 
 typedef boost::intrusive::list< C_Block_Sync,
+                               boost::intrusive::constant_time_size<false>,
                                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<false>,
                                boost::intrusive::member_hook<
                                  Barrier,
                                  boost::intrusive::list_member_hook<>,