switch map to unordered_map
Generally, unordered_maps should be preferred over map because they have
faster access times (O(1)) and tend to allocate less dynamic memory. We
do not rely on ordered iteration in any current use of maps, so it is
safe to do a full replace.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ieaa28ac7f70f9913d13d25142fea9861d49bb23f
diff --git a/utils.cpp b/utils.cpp
index 7a60bbc..e538d20 100644
--- a/utils.cpp
+++ b/utils.cpp
@@ -15,7 +15,7 @@
{
using InterfaceList = std::vector<std::string>;
- std::map<std::string, std::vector<std::string>> mapperResponse;
+ std::unordered_map<std::string, std::vector<std::string>> mapperResponse;
auto& bus = DBusHandler::getBus();