mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +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 nSendOffset; // offset inside the first vSendMsg already sent
|
||||
uint64_t nSendBytes;
|
||||
std::deque<std::vector<unsigned char>> vSendMsg;
|
||||
std::list<std::vector<unsigned char>> vSendMsg;
|
||||
CCriticalSection cs_vSend;
|
||||
CCriticalSection cs_hSocket;
|
||||
CCriticalSection cs_vRecv;
|
||||
|
Loading…
Reference in New Issue
Block a user