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 28, 2024
1 parent 560f5e8 commit 71f958a
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 71f958a

Please sign in to comment.