Skip to content

/mentions + /grep preview causes severe responsiveness degradation #113

@TheDaemoness

Description

@TheDaemoness

/mentions shows a view with all messages containing highlights across all your channels. /grep changes this view to allow you to search through all your windows for messages matching some regex. This is an expensive operation which is performed every time the input bar is updated, including updates that do not change the contents of the input bar (e.g. moving the cursor). After the regex gets longer than a few characters, it can take glirc > 1s on my system to respond to input after allowing it to collect backlog for a few days.

I suggest moving the /mentions + /grep interaction to some other view that doesn't have to deal with redoing the search for previews (/find ?). /grep could then be used to search those views as a form of search refinement.

It may also be worth looking into not triggering a re-render of the view on the aforementioned input bar updates.

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