-
-
Notifications
You must be signed in to change notification settings - Fork 126
perf: reduce duplication and unnecessary allocations #499
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 1 commit
6d88e53
101c23d
8156bcd
2a1614d
c689977
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 | ||||
|---|---|---|---|---|---|---|
|
|
@@ -578,8 +578,7 @@ impl Client { | |||||
| } | ||||||
|
|
||||||
| // Flush cached Signal state to DB (matches WA Web's flushBufferToDiskIfNotMemOnlyMode) | ||||||
| self.flush_signal_cache_logged(&format!("message {}", info.id)) | ||||||
| .await; | ||||||
| self.flush_signal_cache_logged("message dispatch").await; | ||||||
|
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. 🧹 Nitpick | 🔵 Trivial Preserve per-message flush context without reintroducing allocations. Line 581 drops message-level correlation in error logs. You can keep zero-allocation behavior and retain debuggability by passing the message ID directly. Suggested tweak- self.flush_signal_cache_logged("message dispatch").await;
+ self.flush_signal_cache_logged(info.id.as_str()).await;📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| } | ||||||
|
|
||||||
| async fn process_session_enc_batch( | ||||||
|
|
||||||
Uh oh!
There was an error while loading. Please reload this page.