Skip to content

Commit 3ee1ce7

Browse files
committed
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 <[email protected]>
1 parent ce0d6fc commit 3ee1ce7

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/blk/aio/aio.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ std::ostream& operator<<(std::ostream& os, const aio_t& aio);
8888

8989
typedef boost::intrusive::list<
9090
aio_t,
91+
boost::intrusive::constant_time_size<false>,
9192
boost::intrusive::member_hook<
9293
aio_t,
9394
boost::intrusive::list_member_hook<>,

src/client/barrier.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ class BarrierContext;
4545
class C_Block_Sync;
4646

4747
typedef boost::intrusive::list< C_Block_Sync,
48+
boost::intrusive::constant_time_size<false>,
4849
boost::intrusive::member_hook<
4950
C_Block_Sync,
5051
boost::intrusive::list_member_hook<>,
@@ -68,6 +69,7 @@ class Barrier
6869
};
6970

7071
typedef boost::intrusive::list< Barrier,
72+
boost::intrusive::constant_time_size<false>,
7173
boost::intrusive::member_hook<
7274
Barrier,
7375
boost::intrusive::list_member_hook<>,

0 commit comments

Comments
 (0)