-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The popup feels slow #123
Comments
Joining this issue since I experience the same thing. The one second delay before i can start typing is rather jarring compared to other plugins that do the same thing (dump session list to fzf). It feels like something traversing a directory tree when it shouldnt, so I disabled the custom paths setting, in addition to the preview. Though I'm not entirely sure how I would go about profiling the bash scripts when run inside tmux.
|
I don't exactly understand the traversing part, but the config does not help make it any faster |
Hi folks, is there any update on this? Are you still feeling slowness? |
I'm seeing it too, modifying the |
I tried my hand at a refactor to implement this in #152 |
I have discovered three things, but I am not sure of the significance.
So my conclusion is that the issue is in the tmux keybinding logic. |
Same thing here on |
I've updated the plugin a few minutes ago. It seems like it takes 630 ms for the popup to open. I think it is very good, but I still want better :) |
The slowest thing I found in the logs is the
|
I've replaced all tmux_option_or_fallback calls by values I prefer (or default ones). Now it takes only 213 ms for the popup to open. I think this plugin should have much less options or have a faster way to read them. |
@Marat-Gumerov interesting!! Thanks! |
That's what ChatGPT suggested me to use |
@Marat-Gumerov care to give this version a try? I added caching to the parameters, should work quicker. |
@omerxx, well, it seems a little bit worse than it was before. Sorry :(
So I still need 440 ms to read options in the best case. Why don't you use the approach from #152? It seems like all this option reading stuff is handled during the sessionx.tmux file execution, so we don't have to execute it every single time we open the window. Isn't it better for performance? Unfortunately, I can't test the #152 version right now so I don't know how fast it is :( BTW, #152 breaks tmuxinator support right now. |
152 is not bad it just breaks a few things ATM, so I'm waiting for updates |
I've found out how to test #152:
Now it takes around 215 ms on my machine. |
@omerxx, I decided to implement my version, inspired by ideas from #152, thanks to @LoricAndre Please take a look at #155 I hope this implementation does not break anything. BTW, I tested it with tmuxinator and it seems to be working as expected. |
I feel like someone is busy rewriting this plugin from scratch using Nushell :-) |
I am not sure if this is an issue, or is expected
but there is a delay, before the popup opens and, there is a delay when I navigate between sessions,
I disabled the preview still the same.
The text was updated successfully, but these errors were encountered: