From 027a852a772ddc12cc3328b1bbf1aabb98c46a0e Mon Sep 17 00:00:00 2001 From: Alexander Block Date: Tue, 7 Apr 2020 06:37:37 +0200 Subject: [PATCH] Use std::list for vSendMsg std::deque is indexed internally, which gives some unnecessary overhead when removing the front element. --- src/net.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net.h b/src/net.h index 8e8f9edb9a..25f14a5525 100644 --- a/src/net.h +++ b/src/net.h @@ -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> vSendMsg; + std::list> vSendMsg; CCriticalSection cs_vSend; CCriticalSection cs_hSocket; CCriticalSection cs_vRecv;