Skip to content

perf/refactor: optimize recovery arithmetic and reduce congestion allocations#2506

Open
swoiow wants to merge 2 commits into
cloudflare:masterfrom
pylab-me:update_quiche
Open

perf/refactor: optimize recovery arithmetic and reduce congestion allocations#2506
swoiow wants to merge 2 commits into
cloudflare:masterfrom
pylab-me:update_quiche

Conversation

@swoiow

@swoiow swoiow commented Jun 7, 2026

Copy link
Copy Markdown
  • bandwidth: refactor transfer_time and to_bytes_per_period to use strict bounds checking and fast paths instead of checked_mul.
  • congestion: change on_packets_acked signature to accept &[Acked] slice instead of Vec to avoid unnecessary memory draining and reallocations.
  • recovery: optimize PTO duration calculation by replacing 2_u32.pow() with a faster bitwise left shift (1_u32 << shift).
  • stream: fix intrusive_adapter macro syntax to use correct token (=>).

…ocations

- bandwidth: refactor transfer_time and to_bytes_per_period to use strict bounds checking and fast paths instead of checked_mul.
- congestion: change on_packets_acked signature to accept &[Acked] slice instead of Vec<Acked> to avoid unnecessary memory draining and reallocations.
- recovery: optimize PTO duration calculation by replacing 2_u32.pow() with a faster bitwise left shift (1_u32 << shift).
- stream: fix intrusive_adapter macro syntax to use correct token (=>).
@swoiow swoiow requested a review from a team as a code owner June 7, 2026 11:29
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