Giter Site home page Giter Site logo

Comments (18)

mrjones2014 avatar mrjones2014 commented on June 10, 2024 1

My test was run on macOS, same hardware as you, and I got 0.0047s πŸ€”

from smart-splits.nvim.

mrjones2014 avatar mrjones2014 commented on June 10, 2024 1

@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.

mrjones2014 avatar mrjones2014 commented on June 10, 2024

More context in this comment: #53 (comment)

from smart-splits.nvim.

baahrens avatar baahrens commented on June 10, 2024

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.

chuan2984 avatar chuan2984 commented on June 10, 2024

same issue here, love the idea. But the delay is too noticable for me to even use it :(

from smart-splits.nvim.

mrjones2014 avatar mrjones2014 commented on June 10, 2024

Does the issue still persist on latest Wezterm nightly? I still haven't been able to reproduce the issue.

from smart-splits.nvim.

chuan2984 avatar chuan2984 commented on June 10, 2024

@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.

mrjones2014 avatar mrjones2014 commented on June 10, 2024

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.

chuan2984 avatar chuan2984 commented on June 10, 2024

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.

mrjones2014 avatar mrjones2014 commented on June 10, 2024

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.

mrjones2014 avatar mrjones2014 commented on June 10, 2024

Do you have performance issues just moving between wezterm splits, without Neovim or smart-splits.nvim involved at all?

from smart-splits.nvim.

chuan2984 avatar chuan2984 commented on June 10, 2024

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.

chuan2984 avatar chuan2984 commented on June 10, 2024

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.

mrjones2014 avatar mrjones2014 commented on June 10, 2024

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.

chuan2984 avatar chuan2984 commented on June 10, 2024

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.

mrjones2014 avatar mrjones2014 commented on June 10, 2024

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.

chuan2984 avatar chuan2984 commented on June 10, 2024

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.

chuan2984 avatar chuan2984 commented on June 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.