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.hpp b/utils.hpp
index d663b2f..edf4f8e 100644
--- a/utils.hpp
+++ b/utils.hpp
@@ -1,7 +1,7 @@
#pragma once
#include <sdbusplus/server.hpp>
-#include <map>
+#include <unordered_map>
#include <vector>
namespace phosphor
{
@@ -24,7 +24,7 @@
using DbusProperty = std::string;
// The Map to constructs all properties values of the interface
-using PropertyMap = std::map<DbusProperty, PropertyValue>;
+using PropertyMap = std::unordered_map<DbusProperty, PropertyValue>;
/**
* @class DBusHandler