From 7a0c83929f9c19e1619637fcb533eafa3be58eb5 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Mon, 23 Nov 2015 14:45:33 -0800 Subject: [PATCH] Use an unordered map for the Realm coordinator cache --- src/impl/realm_coordinator.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/impl/realm_coordinator.cpp b/src/impl/realm_coordinator.cpp index a25a5036..f3d6c1d8 100644 --- a/src/impl/realm_coordinator.cpp +++ b/src/impl/realm_coordinator.cpp @@ -22,11 +22,13 @@ #include "external_commit_helper.hpp" #include "object_store.hpp" +#include + using namespace realm; using namespace realm::_impl; static std::mutex s_coordinator_mutex; -static std::map> s_coordinators_per_path; +static std::unordered_map> s_coordinators_per_path; std::shared_ptr RealmCoordinator::get_coordinator(StringData path) {