Skip to content

perf: optimize event filtering with indexing #19

@anxkhn

Description

@anxkhn

Problem Description

Event filtering uses linear search which is inefficient for large datasets.

Context

As the number of events grows, filtering performance will degrade.

Files to Investigate

  • src/lib/store.ts - getFiltered method

Expected Behavior

Filtering should use indexed lookups for better performance.

Acceptance Criteria

  • Add indexes for commonly filtered fields
  • Filter complexity reduced from O(n)
  • Add performance tests

Suggested Approach

Implement Map-based indexes for category, status, and other filterable fields.

Difficulty: Medium

Estimated time: 1-2 hours
Prerequisites: Data structures, algorithm complexity
Learning outcomes: Performance optimization

Metadata

Metadata

Assignees

No one assigned

    Labels

    intermediateModerate difficulty (1-2 hours)performancePerformance optimization

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions