perf(rpc): dedupe preconfirmed subscriptions before adaptation - #4036
perf(rpc): dedupe preconfirmed subscriptions before adaptation#4036danielntmd wants to merge 1 commit into
Conversation
|
Claude finished @danielntmd's task in 3m 33s —— View job Review: perf(rpc): dedupe preconfirmed subscriptions before adaptationVerdict: clean. The refactor moves the Checked:
No inline comments — didn't find correctness, concurrency, or resource issues to flag. |
PR Reviewer Guide 🔍(Review updated until commit 00fc30a)Here are some key observations to aid the review process:
|
b5a2334 to
00fc30a
Compare
|
Claude finished @danielntmd's task in 3m 44s —— View job Review: perf(rpc): dedupe preconfirmed subscriptions before adaptationVerdict: clean. No blocker/important/nit findings — no inline comments posted. Summary of what changed: Checked and confirmed correct:
|
|
Persistent review updated to latest commit 00fc30a |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4036 +/- ##
==========================================
- Coverage 79.31% 79.19% -0.12%
==========================================
Files 464 464
Lines 35793 35793
==========================================
- Hits 28389 28348 -41
- Misses 7395 7436 +41
Partials 9 9 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
User description
Performs preconfirmed subscription deduplication before RPC response adaptation, avoiding unnecessary transaction and receipt object creation for entries already emitted in the same preconfirmed round.
PR Type
Enhancement
Description
Dedupe preconfirmed entries before adaptation
Avoid unnecessary transaction object creation
Avoid unnecessary receipt object creation
Apply pattern across RPC v9 and v10
File Walkthrough
subscription_receipts.go
Dedupe preconfirmed receipts before adaptationrpc/v10/subscription_receipts.go
shouldSendcallback toreceiptsOfnilcallback for canonical blockssubscription_transactions.go
Dedupe preconfirmed transactions before adaptationrpc/v10/subscription_transactions.go
shouldSendcallback totransactionsOftxn.Hash()for deduplicationnilcallback for canonical blockssubscription_receipts.go
Dedupe preconfirmed receipts before adaptationrpc/v9/subscription_receipts.go
shouldSendcallback toreceiptsOfstatusvariable for canonical blockssubscription_transactions.go
Dedupe preconfirmed transactions before adaptationrpc/v9/subscription_transactions.go
shouldSendcallback totransactionsOftxn.Hash()for deduplicationnilcallback for canonical blocks