Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[0.x] Optimize NACKs handling #3471

Draft
wants to merge 3 commits into
base: 0.x
Choose a base branch
from
Draft

[0.x] Optimize NACKs handling #3471

wants to merge 3 commits into from

Conversation

atoppi
Copy link
Member

@atoppi atoppi commented Oct 30, 2024

This PR includes a set of optimizations for NACKs handling.
We identified some inefficient code paths that could potentially cause some performance issues when the server receives a high number of NACK requests.
Once completed this, a similar effort will be done on 1.x too.

TODO

  • replace g_list with g_queue to only use O(1) operations and avoid full list scanning
  • use a pre-allocated queue per component
  • reduce memory allocations when preparing packets to retransmit

@atoppi atoppi marked this pull request as draft October 30, 2024 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant