diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-04-16 00:16:02 +0100 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-06-26 22:14:21 +0100 |
| commit | ed2c81ed95be71bace897e62a0c241068cfde7be (patch) | |
| tree | a6077a06dc4aa4bcf127f26092cb43f3c3742e3b /src/cryptonote_basic/connection_context.h | |
| parent | 209ec963b5ed0a3ad98f159b9f500c28bb3e7d78 (diff) | |
| download | monzero-core-ed2c81ed95be71bace897e62a0c241068cfde7be.tar.gz monzero-core-ed2c81ed95be71bace897e62a0c241068cfde7be.tar.xz monzero-core-ed2c81ed95be71bace897e62a0c241068cfde7be.zip | |
replace std::list with std::vector on some hot paths
also use reserve where appropriate
Diffstat (limited to 'src/cryptonote_basic/connection_context.h')
| -rw-r--r-- | src/cryptonote_basic/connection_context.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_basic/connection_context.h b/src/cryptonote_basic/connection_context.h index 3f4651565..eb73ab0ea 100644 --- a/src/cryptonote_basic/connection_context.h +++ b/src/cryptonote_basic/connection_context.h @@ -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; |
