mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 04:22:55 +01:00
Use std::list for vSendMsg
std::deque is indexed internally, which gives some unnecessary overhead when removing the front element.
This commit is contained in:
parent
a3bc3fd0f0
commit
027a852a77
@ -770,7 +770,7 @@ public:
|
|||||||
size_t nSendSize; // total size of all vSendMsg entries
|
size_t nSendSize; // total size of all vSendMsg entries
|
||||||
size_t nSendOffset; // offset inside the first vSendMsg already sent
|
size_t nSendOffset; // offset inside the first vSendMsg already sent
|
||||||
uint64_t nSendBytes;
|
uint64_t nSendBytes;
|
||||||
std::deque<std::vector<unsigned char>> vSendMsg;
|
std::list<std::vector<unsigned char>> vSendMsg;
|
||||||
CCriticalSection cs_vSend;
|
CCriticalSection cs_vSend;
|
||||||
CCriticalSection cs_hSocket;
|
CCriticalSection cs_hSocket;
|
||||||
CCriticalSection cs_vRecv;
|
CCriticalSection cs_vRecv;
|
||||||
|
Loading…
Reference in New Issue
Block a user