Skip to content
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

feat(sdk): Introduce event_cache::Deduplicator #4174

Merged
merged 3 commits into from
Oct 30, 2024

Commits on Oct 30, 2024

  1. feat(sdk): Introduce event_cache::Deduplicator.

    This patch introduces `Deduplicator`, an efficient type to detect
    duplicated events in the event cache. It uses a bloom filter, and
    decorates a collection of events with `Decoration`, which an enum that
    marks whether an event is unique, duplicated or invalid.
    Hywan committed Oct 30, 2024
    Configuration menu
    Copy the full SHA
    6b23e91 View commit details
    Browse the repository at this point in the history
  2. feat(sdk): Find and remove duplicated events in RoomEvents.

    This patch uses the new `Deduplicator` type, along with
    `LinkeChunk::remove_item_at` to remove duplicated events. When a new
    event is received, the older one is removed.
    Hywan committed Oct 30, 2024
    Configuration menu
    Copy the full SHA
    1849a8b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cf4ea95 View commit details
    Browse the repository at this point in the history