Skip to content

Commit 66a7516

Browse files
committed
Comments on std hashmap bucket defaults.
1 parent f5440a3 commit 66a7516

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

include/bitcoin/node/chasers/chaser_organize.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ class chaser_organize
172172

173173
// These are protected by strand.
174174
chain_state::ptr state_{};
175+
176+
// TODO: optimize, default bucket count is around 8.
175177
block_tree tree_{};
176178
};
177179

include/bitcoin/node/protocols/protocol_block_in.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ class BCN_API protocol_block_in
5656

5757
struct track
5858
{
59+
// TODO: optimize, default bucket count is around 8.
5960
hashmap ids{};
6061
size_t announced{};
6162
system::hash_digest last{};

include/bitcoin/node/sessions/session_outbound.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ class BCN_API session_outbound
5454
const float allowed_deviation_;
5555

5656
// This is protected by strand.
57+
// TODO: optimize, default bucket count is around 8.
5758
std::unordered_map<object_key, double> speeds_{};
5859
};
5960

0 commit comments

Comments
 (0)