/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.
/mentionsshows a view with all messages containing highlights across all your channels./grepchanges 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+/grepinteraction to some other view that doesn't have to deal with redoing the search for previews (/find?)./grepcould 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.