mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-06 20:44:25 +00:00
[core] Switch to ankerl::unordered_dense
Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user