zed icon indicating copy to clipboard operation
zed copied to clipboard

expensive "git status" polling even with all git features disabled

Open TPolzer opened this issue 7 months ago • 6 comments

Check for existing issues

  • [X] Completed

Describe the bug / provide steps to reproduce it

I disabled all git related features, following

  • https://github.com/zed-industries/zed/issues/13304

Unfortunately zed seems to poll a subprocess git --no-optional-locks status --porcelain=v1 --untracked-files=all -z . that uses significant amounts of CPU.

Running git --no-optional-locks status --porcelain=v1 --untracked-files=all -z . in the project root takes around 100ms, which is probably expected, since my repo is large. It would be nice to be able to just turn off git integration or ideally configure a polling frequency for polled (expensive) state?

Environment

Zed: v0.143.7 (Zed) OS: Linux Wayland debian unknown Memory: 31 GiB Architecture: x86_64

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your Zed.log file to this issue.

Zed.log

TPolzer avatar Jul 12 '24 14:07 TPolzer