From d8116aa7968c13ff13f5391e8b28f03de44b4700 Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 27 Jul 2023 14:03:39 +0300 Subject: [PATCH] Use FlatHashMap for limited_tasks_ in ChainScheduler. --- tdutils/td/utils/ChainScheduler.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tdutils/td/utils/ChainScheduler.h b/tdutils/td/utils/ChainScheduler.h index a7624bb97..ebc97d295 100644 --- a/tdutils/td/utils/ChainScheduler.h +++ b/tdutils/td/utils/ChainScheduler.h @@ -9,6 +9,7 @@ #include "td/utils/algorithm.h" #include "td/utils/common.h" #include "td/utils/Container.h" +#include "td/utils/FlatHashMap.h" #include "td/utils/FlatHashSet.h" #include "td/utils/HashTableUtils.h" #include "td/utils/List.h" @@ -142,7 +143,7 @@ class ChainScheduler final : public ChainSchedulerBase { ExtraT extra; }; std::unordered_map> chains_; - std::unordered_map> limited_tasks_; + FlatHashMap limited_tasks_; Container tasks_; VectorQueue pending_tasks_;