mirror of
https://github.com/monero-project/monero.git
synced 2025-08-16 09:40:39 -04:00
replace std::list with std::vector on some hot paths
also use reserve where appropriate
This commit is contained in:
parent
209ec963b5
commit
ed2c81ed95
28 changed files with 257 additions and 233 deletions
|
@ -52,7 +52,7 @@ namespace cryptonote
|
|||
};
|
||||
|
||||
state m_state;
|
||||
std::list<crypto::hash> m_needed_objects;
|
||||
std::vector<crypto::hash> m_needed_objects;
|
||||
std::unordered_set<crypto::hash> m_requested_objects;
|
||||
uint64_t m_remote_blockchain_height;
|
||||
uint64_t m_last_response_height;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue