Conversation
…#868) Add changelog entry for the adaptive two-path dedup in collect_unique_index_macs: linear scan stays for ≤64 mutations, O(n log n) index sort kicks in above that, cutting resume-sync at N=1000 from 5.7 ms to 550 µs with no memory regression. https://claude.ai/code/session_01NPRJdjNk2v7E3izPccavpF
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughA new changelog entry dated June 14, 2026 is added as an MDX file documenting an adaptive dedup optimization for ChangesChangelog Entry: appstate dedup sort
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
No issues found across 2 files
Tip: cubic could auto-approve low-risk PRs like this, if it thinks it's safe to merge. Learn more
Re-trigger cubic
$(cat <<'EOF'
Summary
changelog/2026-06-14-appstate-dedup-sort.mdxdocumenting the adaptive two-path dedup incollect_unique_index_macsmerged in oxidezap/whatsapp-rust#868docs.jsonWhat the source PR changed
collect_unique_index_macs(wacore/src/appstate_sync.rs) deduplicates index MACs before the batched backend lookup. The O(n²) linear scan is now kept only for ≤ 64 mutations; above that an O(n log n) index sort runs instead, cutting resume-sync time at N=1000 from 5,678 µs → 550.8 µs (×10) with no memory regression and only ~4 KB of extra scratch per patch.No public API, wire, or user-facing behaviour changes — changelog entry only.
Test plan
.mdxrenders correctly in the Mintlify previewhttps://claude.ai/code/session_01NPRJdjNk2v7E3izPccavpF
EOF
)
Generated by Claude Code
Summary by cubic
Add a June 14 changelog entry documenting the adaptive index-MAC dedup in
collect_unique_index_macs, and register it indocs.json.Highlights a 10× speedup at N=1000 (5.7 ms → 550 µs) by switching to a sort path above 64 mutations, with no API or behavior changes.
Written for commit aa9f92a. Summary will update on new commits.
Summary by CodeRabbit