Skip to content

remove allocation on outbound gossip - #202

Merged
vladimir-ea merged 4 commits into
mainfrom
ve/send_alloc
Aug 26, 2026
Merged

remove allocation on outbound gossip#202
vladimir-ea merged 4 commits into
mainfrom
ve/send_alloc

Conversation

@vladimir-ea

@vladimir-ea vladimir-ea commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator

QUIC stack copies all outbound data into ack buffers in case it needs to resend. This change removes those allocations for outbound gossip - instead we pass in tcache references.

This requires that the tcache data lives until the sent data is acked and must not be released. The default RandomAccessConsumer is not strict in this regard and can release acquired data if it falls behind; so this PR adds a 'strict' mode where this behaviour is not allowed. Only used currently on the outbound gossip consumer.

@vladimir-ea
vladimir-ea marked this pull request as ready for review August 26, 2026 10:07
@vladimir-ea
vladimir-ea merged commit aa37f2a into main Aug 26, 2026
2 of 3 checks passed
@vladimir-ea
vladimir-ea deleted the ve/send_alloc branch August 26, 2026 10:33
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.

2 participants