[core] Switch to ankerl::unordered_dense

Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
x7z4w
2025-11-24 17:34:56 +00:00
parent 03132c6877
commit ef6522ed28
282 changed files with 4386 additions and 1456 deletions

View File

@@ -10,10 +10,11 @@
#include <ctime>
#include <map>
#include <tuple>
#include <unordered_map>
#include <utility>
#include <vector>
#include "3party/ankerl/unordered_dense.h"
#include "3party/just_gtfs/just_gtfs.h"
// This is the implementation of the Schedule class and its helpers for handling transit service
@@ -205,8 +206,8 @@ private:
std::map<TimeInterval, Frequency> m_intervals;
};
using DatesIntervals = std::unordered_map<DatesInterval, FrequencyIntervals, DatesIntervalHasher>;
using DatesExceptions = std::unordered_map<DateException, FrequencyIntervals, DateExceptionHasher>;
using DatesIntervals = ankerl::unordered_dense::map<DatesInterval, FrequencyIntervals, DatesIntervalHasher>;
using DatesExceptions = ankerl::unordered_dense::map<DateException, FrequencyIntervals, DateExceptionHasher>;
// Line schedule with line service days (as DatesInterval ranges) and exceptions in service days
// (as DateException items). For each date there are frequency intervals (time ranges with headway