From b7346649926b4357b27aa81238eb34cebe39671b Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 5 May 2026 10:00:45 +0100 Subject: Switch to std::map for existingEntities cache Insertion cost of flat_map too high when map grows large. --- src/ingestor.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ingestor.hpp b/src/ingestor.hpp index 81041ff..dd803ce 100644 --- a/src/ingestor.hpp +++ b/src/ingestor.hpp @@ -8,8 +8,8 @@ #include #include #include -#include #include +#include #include #include #include @@ -97,7 +97,7 @@ namespace WebStat { DB::ConnectionPoolPtr dbpool; mutable Stats stats {}; - std::flat_map existingEntities; + std::map existingEntities; LineBatch queuedLines, processingLines; bool terminated = false; -- cgit v1.3