From 56706244924987852e5ec610941bce8258ae647b Mon Sep 17 00:00:00 2001 From: Nicolas James Date: Mon, 23 Feb 2026 15:47:39 +1100 Subject: Implement AntiLag2 --- src/timestamp_pool.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/timestamp_pool.cc') diff --git a/src/timestamp_pool.cc b/src/timestamp_pool.cc index e482654..5149747 100644 --- a/src/timestamp_pool.cc +++ b/src/timestamp_pool.cc @@ -3,6 +3,7 @@ #include "queue_context.hh" #include +#include #include #include #include @@ -24,9 +25,8 @@ TimestampPool::QueryChunk::QueryChunk(const QueueContext& queue_context) { return qp; }(); - constexpr auto key_range = std::views::iota(0u, QueryChunk::CHUNK_SIZE); - this->free_indices = std::make_unique(std::begin(key_range), - std::end(key_range)); + constexpr auto KEY_RANGE = std::views::iota(0u, QueryChunk::CHUNK_SIZE); + this->free_indices = std::make_unique(std::from_range, KEY_RANGE); this->command_buffers = [&, this]() -> auto { auto cbs = std::make_unique>(CHUNK_SIZE); -- cgit v1.2.3