Skip to content

Commit

Permalink
[core] Increased CUnitQueue block allocation speed.
Browse files Browse the repository at this point in the history
Allocates 128 additional units at the start and every time 90% of units are taken.
Previously was allocating only 32 units.
  • Loading branch information
maxsharabayko committed Jul 12, 2022
1 parent d002b5e commit 7c81569
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion srtcore/api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2983,7 +2983,7 @@ void srt::CUDTUnited::updateMux(CUDTSocket* s, const sockaddr_any& addr, const U
m.m_pSndQueue = new CSndQueue;
m.m_pSndQueue->init(m.m_pChannel, m.m_pTimer);
m.m_pRcvQueue = new CRcvQueue;
m.m_pRcvQueue->init(32, s->core().maxPayloadSize(), m.m_iIPversion, 1024, m.m_pChannel, m.m_pTimer);
m.m_pRcvQueue->init(128, s->core().maxPayloadSize(), m.m_iIPversion, 1024, m.m_pChannel, m.m_pTimer);

// Rewrite the port here, as it might be only known upon return
// from CChannel::open.
Expand Down

0 comments on commit 7c81569

Please sign in to comment.