Skip to content

Conversation

@malkovitc
Copy link

Summary

Fixes #472

Optimize MessageDeduplicator for better performance with large message volumes.

Test plan

  • Verify deduplication still works correctly
  • Test with high message volumes
  • Check memory usage improvements

🤖 Generated with Claude Code

evgeniy.chernomortsev added 2 commits December 9, 2025 14:50
allowBluetoothHFP is not available on iOS Simulator, causing build
failures. Use conditional compilation to exclude this option when
building for simulator while keeping it for device builds.
- Make Entry struct Equatable for better testability
- Remove down to 75% of maxCount instead of fixed 100 items for better
  amortization of cleanup cost
- Reuse Date instance to reduce allocations in isDuplicate()
- Add documentation comments for public methods
- Improve memory capacity management in cleanup()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: optimize MessageDeduplicator performance and memory management

1 participant