Skip to content

Commit

Permalink
Use unordered_map in PrefixData::sorted_records
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoinePrv committed Apr 19, 2023
1 parent 6f48637 commit 787e45b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libmamba/src/core/prefix_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
//
// The full license is in the file LICENSE, distributed with this software.

#include <string_view>
#include <unordered_map>

#include "mamba/core/output.hpp"
#include "mamba/core/prefix_data.hpp"
#include "mamba/core/util.hpp"
Expand Down Expand Up @@ -77,7 +80,7 @@ namespace mamba
using node_id = typename decltype(dep_graph)::node_id;

{
auto name_to_node_id = std::map<std::string_view, node_id>();
auto name_to_node_id = std::unordered_map<std::string_view, node_id>();

// Add all nodes
for (const auto& [name, record] : records())
Expand Down

0 comments on commit 787e45b

Please sign in to comment.