From 6d47d24f73ec0b68a500176a0271ba5999dcb5e2 Mon Sep 17 00:00:00 2001 From: Colin LeMahieu Date: Fri, 8 Sep 2023 10:41:14 +0100 Subject: [PATCH] Replacing vectors with deques. --- nano/node/scheduler/buckets.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nano/node/scheduler/buckets.hpp b/nano/node/scheduler/buckets.hpp index 0f588fb9..5b6cc9e4 100644 --- a/nano/node/scheduler/buckets.hpp +++ b/nano/node/scheduler/buckets.hpp @@ -4,7 +4,7 @@ #include #include -#include +#include namespace nano { @@ -36,14 +36,14 @@ class buckets final using priority = std::set; /** container for the buckets to be read in round robin fashion */ - std::vector buckets_m; + std::deque buckets_m; /** thresholds that define the bands for each bucket, the minimum balance an account must have to enter a bucket, * the container writes a block to the lowest indexed bucket that has balance larger than the bucket's minimum value */ - std::vector minimums; + std::deque minimums; /** Contains bucket indicies to iterate over when making the next scheduling decision */ - std::vector schedule; + std::deque schedule; /** index of bucket to read next */ decltype (schedule)::const_iterator current;