Skip to content

[core] Implemented a new sender buffer.#3255

Draft
ethouris wants to merge 19 commits intoHaivision:devfrom
ethouris:dev-new-sender-buffer
Draft

[core] Implemented a new sender buffer.#3255
ethouris wants to merge 19 commits intoHaivision:devfrom
ethouris:dev-new-sender-buffer

Conversation

@ethouris
Copy link
Collaborator

@ethouris ethouris commented Dec 4, 2025

The new sender buffer is based on std::deque container, utilizes memory blocks handled by BufferedMessageStorage and the loss schedule is handled on top of the existing cells as linked list of flagged elements.

@ethouris ethouris added this to the v1.6.0 milestone Dec 4, 2025
@ethouris ethouris added Type: Maintenance Work required to maintain or clean up the code [core] Area: Changes in SRT library core [tests] Area: Unit tests labels Dec 4, 2025
Comment on lines 320 to 335
return CONTINUE;
}

size_t hsize() const { return m_entries.size(); }

//CPos incPos(CPos pos, COff inc = COff(1)) const { return CPos((pos + inc) % hsize()); }

CPos incPos(CPos position, COff offset = COff(1)) const
{
CPos sum = position + offset;
CPos posmax = hsize();
if (sum >= posmax)
return sum - posmax;
return sum;
}
CPos decPos(CPos pos) const

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.
Mikołaj Małecki added 2 commits December 12, 2025 13:11
…implemented walkEntries and added test for it. Some fixes from CodeQL reports
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[core] Area: Changes in SRT library core [tests] Area: Unit tests Type: Maintenance Work required to maintain or clean up the code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[MAINT] Reimplement the sender buffer to make it a random-access container

1 participant