mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-07 04:53:54 +00:00
[core] Switch to ankerl::unordered_dense
Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
@@ -11,9 +11,10 @@
|
||||
#include <cstring>
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
#include <vector>
|
||||
|
||||
#include "3party/ankerl/unordered_dense.h"
|
||||
|
||||
#include "cppjansson/cppjansson.hpp"
|
||||
|
||||
namespace transit
|
||||
@@ -21,7 +22,7 @@ namespace transit
|
||||
namespace experimental
|
||||
{
|
||||
using OsmIdToFeatureIdsMap = std::map<base::GeoObjectId, std::vector<FeatureId>>;
|
||||
using EdgeIdToFeatureId = std::unordered_map<EdgeId, uint32_t, EdgeIdHasher>;
|
||||
using EdgeIdToFeatureId = ankerl::unordered_dense::map<EdgeId, uint32_t, EdgeIdHasher>;
|
||||
// Functions for parsing one line of line-by-line json and creating corresponding item in container.
|
||||
void Read(base::Json const & obj, std::vector<Network> & networks);
|
||||
void Read(base::Json const & obj, std::vector<Route> & routes);
|
||||
|
||||
Reference in New Issue
Block a user