Optimize subscriber slot delivery#104
Open
dallison wants to merge 12 commits into
Open
Conversation
Add per-subscriber slot queues and a drop-detection toggle so unreliable subscribers can avoid scanning slot bitsets on the hot receive path.
Explicitly reset the read message before reusing the publisher buffer in PublishAndReadWithSubscriberQueue so the slot is released as intended.
Keep bitsets authoritative while making per-subscriber queues bounded, reclaimable, ABI-checked, and consistent across C++, Rust, and shadow recovery.
Make queue delivery recover safely through authoritative bitsets across overflow, rejection, churn, and server failover while preserving C++ and Rust parity.
Decouple publisher arena provisioning in bytes from per-subscriber queue capacity and carry the layout through clients, bridges, and recovery.
Avoid retaining rejected reusable messages and keep the Android-only constructor test aligned with the explicit queue arena API.
Preserve version diagnostics before unmapping, clear partial mapping state, and initialize the synthetic memfd CCB used by Android tests.
Concurrent publishers can reserve queue positions out of ordinal order; recover earlier bits and only discard exact generations already delivered.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test plan