mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-23 15:02:52 +00:00
use flat_map for smaller tables
This commit is contained in:
1 parent
18b6ba80f2
commit
518e53a61c
4 files changed
+7
-7
No files matched your search
+1
-1
@@ -310,7 +310,7 @@ namespace transport
|
||||
if (m_SentMessages.empty ()) // schedule resend at first message only
|
||||
ScheduleResend ();
|
||||
|
||||
auto ret = m_SentMessages.insert (std::make_pair (msgID, m_Session.GetServer ().GetSentMessagesPool ().AcquireShared ()));
|
||||
auto ret = m_SentMessages.emplace (msgID, m_Session.GetServer ().GetSentMessagesPool ().AcquireShared ());
|
||||
auto& sentMessage = ret.first->second;
|
||||
if (ret.second)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user