Skip to content

Commit

Permalink
Use unordered_map
Browse files Browse the repository at this point in the history
  • Loading branch information
pwojcikdev committed Nov 26, 2024
1 parent 9ebd155 commit cb103c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nano/node/bounded_backlog.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#include <boost/multi_index/sequenced_index.hpp>
#include <boost/multi_index_container.hpp>

#include <unordered_map>

namespace mi = boost::multi_index;

namespace nano
Expand Down Expand Up @@ -87,7 +89,7 @@ class backlog_index
ordered_blocks blocks;

// Keep track of the size of the backlog in number of unconfirmed blocks per bucket
std::map<nano::bucket_index, size_t> size_by_bucket;
std::unordered_map<nano::bucket_index, size_t> size_by_bucket;
};

class bounded_backlog_config
Expand Down

0 comments on commit cb103c5

Please sign in to comment.