Closed mrjones2014 closed 6 months ago
More context in this comment: https://github.com/mrjones2014/smart-splits.nvim/issues/53#issuecomment-1767482644
I have the same issue. Same version of wezterm. Interestingly enough it works fine on my mac and only fails on my linux machine. Maybe that helps with debugging this.
Edit: Tried this with nvim nightly and 0.9.1
same issue here, love the idea. But the delay is too noticable for me to even use it :(
Does the issue still persist on latest Wezterm nightly? I still haven't been able to reproduce the issue.
@mrjones2014 sorry, are you saying that you no longer have this performance problem with the latest nightly build? I also saw your comment in navigator, is this what you use usually, just curious? this seems to be more complete
I also just pulled the nightly build of wezterm, the delay from nvim to wezterm is really slow, like about 1sec. This is like 2x the delay I had with Navigator, could this be my configuration?
another problem is with resizing, this is probably worse or the same, when i have two wezterm panes side by side, both filled with vim, resizing takes like 1-2sec to complete. but if only 1 side is terminal, the other vim, resizing is super fast
I also ran the list-clients --format=json command, it averages around 0.43s
I haven't used Navigator in a long time, ever since I added the multiplexer integrations to this plugin. I'm on wezterm 20240203-110809-5046fc22
and I cannot reproduce the issue. There's virtually no delay at all for me.
Could you test the performance of resizing manually with the wezterm cli adjust-pane-size --amount 3 Left
(the --amount
and direction can be whatever you want).
wezterm cli adjust-pane-size --amount 3 Left
this is the same as list-client, about 0.4s 😢 ill go ahead and give your build a try, it might be my OS? i often sense a 1-5 sec delay doing brew, there seems to be always some kind of delay, i dont know if its wezterm specific
this is the same as list-client, about 0.4s 😢
It seems like this is the core issue, as on my machine it's more like 0.0047s.
Do you have performance issues just moving between wezterm splits, without Neovim or smart-splits.nvim involved at all?
Do you have performance issues just moving between wezterm splits, without Neovim or smart-splits.nvim involved at all?
No no no, that I dont have. Resizing, switching between tabs, panes, workspaces are instant.
this is the same as list-client, about 0.4s 😢
It seems like this is the core issue, as on my machine it's more like 0.0047s.
thank you for helping me. I was afraid that we were going to arrive at this conclusion :( . Any idea how I can troubleshoot that, theres definitely a noticable delay to any cli command, its the same in the default terminal too. Im on MacOs btw
its the same in the default terminal too
This indicates to me that maybe it’s something to do with your shell config (like bash or zsh or fish shell config). Can you test in a shell without anything in .bashrc/.zshrc/config.fish?
This indicates to me that maybe it’s something to do with your shell config (like bash or zsh or fish shell config). Can you test in a shell without anything in .bashrc/.zshrc/config.fish?
commented out .zshrc and .bashrc, sourced still around 0.4s :(. Isnt there a command that can list out what exactly are run for how long between the start and the end of an execution?
LOL, i ran the same command via bash -c, it takes 0.001s. I wonder what is causing my zsh to take this long, unbelievable even with .zshrc commented out
LOL, i ran the same command via bash -c, it takes 0.001s
hmm now that is interesting 🤔 can anyone else reproduce these results? @baahrens @laxman20
If so, it seems like the issue is related to either wezterm or zsh. It may be worth opening a related issue in the wezterm repo.
LOL, i ran the same command via bash -c, it takes 0.001s
hmm now that is interesting 🤔 can anyone else reproduce these results? @baahrens @laxman20
If so, it seems like the issue is related to either wezterm or zsh. It may be worth opening a related issue in the wezterm repo.
Sorry I made a mistake since wezterm isnt sourced in bash. The result is actually the same as zsh. So i guess theres some system wide thing thats limiting this
I also asked a friend to install on another almost new Macbook Pro M2, fresh brew install wezterm, and got 0.4 as total. I wonder if its a macos thing or something that our company installs for security
My test was run on macOS, same hardware as you, and I got 0.0047s 🤔
My test was run on macOS, same hardware as you, and I got 0.0047s 🤔 Im asking another coworker to test since we use the same models of macbook pros, im wondering if its one of these 'monitoring' apps that we have. It is really weird.
I tried using set -x and zsh -vx to see bg commands that are run alongside each command, but theres nothing. Theres only a delay after executing the wezterm cli command :(. very sad. but thanks for the continuing back and forth!
@chuan2984 would you please file an issue in the wezterm repo? You can link this as a related issue, and tag me since I’m very interested what the issue is.
Closing this one since it seems we’ve determined it’s on Wezterm CLI’s end and not an issue with the plugin.
I'm noticing a delay when switching panes when using Wezterm.
Moving from Neovim pane to Neovim pane is quick. Moving from Neovim pane to Wezterm pane has a noticeable delay. Wezterm to Wezterm and Wezterm to Neovim are quick
Wezterm version:
20230712-072601-f4abf8fd
Wezterm config:
Neovim version: v0.9.2
Smart-Splits version: 1.2.4 Smart-Splits config (lazy config):
Originally posted by @laxman20 in https://github.com/mrjones2014/smart-splits.nvim/discussions/133