Tmux Plugin is too slow
MushiTheMoshi opened this issue ยท 13 comments
Hi there, awesome plugin, very productive one. Thanks for the job done here very appreciated.
I found that tmux plugin is really slow in compare with the standalone thumb, it takes up to 10 secs to find all occurs, I was wondering how can I troubleshoot this, just to see if I can somehow improve it.
It usually works for me in milliseconds. Can you give us a bit of context?
Do you have some custom regex that is matching every word or something like this? It is really weird this amount of matches.
I found the reason, it was related to the tmux alerts, if activated those collide and you get the idea of incompleteness since the plugin wait until the alert is gone, when turned off everything works just fine
Not sure to fully get it, but if it works, that's ok. ๐
Closing issue.
@MushiTheMoshi I'm having a similar issue. What did you change in your tmux.conf file?
I edited as below:
set -g visual-activity off
set -g visual-bell off
set -g visual-silence on
@MushiTheMoshi Thank you! That solved my issue too.
But just to understand, what is the cause to end up in this situation? I never faced this. I can understand the relationship between showing hints and visual-bell, visual-activity, etc.
my understanding is that when you issue a command inside a tmux session, it's registered and tmux alerts about it, that behaviour is like colliding with the plugin execution, I notice by hitting enter while waiting for the hinting links. That's how I came with the ideo to turn off the alerts, bells etc.
Thank you @MushiTheMoshi. I first tried tmux-thumbs a few months back and stopped using it due to the very slow response. Your solution worked for me too. visual-bell
and visual-silence
had no effect on the performance, but turning on visual-activity
was causing a delay of almost 10 seconds.
I just added a bit of documentation about this: https://github.com/fcsonline/tmux-thumbs/blob/master/README.md#troubleshooting
Thank you all for handling this.