Skip to content

perf: Debounce search inputs to minimize layout recalculations #476

@DebasmitaBose0

Description

@DebasmitaBose0

Problem

Typing in the search bar triggers autocomplete filters instantly on every keystroke, leading to high CPU usage.

Current Behavior

Autocomplete filters are evaluated on every single keystroke.

Why This Improvement Is Needed

Debouncing inputs reduces excessive calculations and improves input responsiveness (INP).

Proposed Solution

Wrap search events with a 300ms debounce helper.

Expected Outcome

Fewer UI calculations and smoother typing behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions