-
-
Notifications
You must be signed in to change notification settings - Fork 123
perf: remove four per-message tasks and buffers from the send/receive round trip #1116
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
Changes from all commits
b9987c9
1d4b131
5564a39
6822b01
28f1071
c9bc52b
1828234
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -257,6 +257,8 @@ impl Client { | |
| group_distribution_lock_evictions: group_distribution_locks.evictions, | ||
| group_distribution_lock_eviction_blocks: group_distribution_locks.eviction_blocks, | ||
| resend_rate_limiter_chats: self.resend_rate_limiter.entry_count(), | ||
| transport_ack_queue: self.transport_ack_queue.get().map_or(0, |tx| tx.len()), | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When the transport stalls, each unbounded slot retains an entire AGENTS.md reference: AGENTS.md:L54-L54 Useful? React with 👍 / 👎. |
||
| delivery_receipt_queue: self.delivery_receipt_queue.get().map_or(0, |tx| tx.len()), | ||
| response_waiters, | ||
| node_waiters: self.node_waiter_count.load(Ordering::Relaxed), | ||
| pending_retries: pending_retries_count, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When the transport is slow or stalled, this unbounded queue can retain many full inbound nodes and flush guards, but
Client::memory_report()does not count either its entries or retained bytes. That makes the report understate precisely the growth introduced by the new persistent worker and prevents the documented per-session leak diagnostics from identifying an ack backlog; expose the queue length and estimated node retention inMemoryReport.AGENTS.md reference: AGENTS.md:L54-L54
Useful? React with 👍 / 👎.