Comments (18)
My test was run on macOS, same hardware as you, and I got 0.0047s π€
from smart-splits.nvim.
@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.
from smart-splits.nvim.
More context in this comment: #53 (comment)
from smart-splits.nvim.
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
from smart-splits.nvim.
same issue here, love the idea. But the delay is too noticable for me to even use it :(
from smart-splits.nvim.
Does the issue still persist on latest Wezterm nightly? I still haven't been able to reproduce the issue.
from smart-splits.nvim.
@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
from smart-splits.nvim.
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).
from smart-splits.nvim.
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
from smart-splits.nvim.
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.
from smart-splits.nvim.
Do you have performance issues just moving between wezterm splits, without Neovim or smart-splits.nvim involved at all?
from smart-splits.nvim.
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.
from smart-splits.nvim.
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
from smart-splits.nvim.
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?
from smart-splits.nvim.
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
from smart-splits.nvim.
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.
from smart-splits.nvim.
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
from smart-splits.nvim.
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!
from smart-splits.nvim.
Related Issues (20)
- [Bug]: Resize mode is deleting my global keymaps that remap j and k to gj and gk HOT 2
- [Bug]: Wezterm navigation not working HOT 12
- [Feature]: Something like an accordion mode for smart resizing of splits HOT 2
- [Bug]: Neovide (or other UI?) run from WezTerm leads to error in integration logic HOT 9
- [Feature]: Add commands for buffer swap HOT 1
- [Bug]: After splitting the window in kitty, open nvim on both sides and use require('smart-splits').move_cursor_right which is invalid. HOT 13
- [Feature]: Improve mux auto-detection and make lookup more flexible
- Use wezterm.plugin.require() for easy install on wezterm HOT 4
- [Feature]: kitty pass_keys.py remove the use of regulars and instead use the kitty api HOT 1
- [Feature]: Does it support warp terminal? HOT 2
- [Bug]: Wezterm Unable to move jumps properly HOT 6
- [Bug]: Is impossible to set `Previous` using <C-\> HOT 10
- [Bug]: System exit > 0 after upgrade to v1.3.1 (v1.3.0 works fine) HOT 11
- [Bug]: Switching between neovim and wezterm panes when using wezterm ssh client does not work HOT 7
- [Bug]: wrapping occurs despite setting `at_edge` to a value other than `wrap`
- [Bug]: Invalid window id after closing window and navigating to previous window HOT 1
- [Meta]: Add CONTRIBUTING.md
- [Bug]: not working in wezterm and git diff mode with lazy loading HOT 3
- [Bug]: `set laststatus=3` + lualine.nvim + smart-splits.nvim == flickering when switching windows HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smart-splits.nvim.