Skip to content
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

WSL: Bad performance when using plandex load #143

Open
appreciated opened this issue Jun 5, 2024 · 0 comments
Open

WSL: Bad performance when using plandex load #143

appreciated opened this issue Jun 5, 2024 · 0 comments

Comments

@appreciated
Copy link
Contributor

appreciated commented Jun 5, 2024

Problem

plandex load ... inside the wsl takes very long (2-3 Mintues per file) on my machine. Looking on htop I can see many instances of git status --porcelain probably called by plandex.

This is probably only an issue when the directory /mnt/c/Users/<user>/... is being used.
I am probably hitting the following issue microsoft/WSL#4401

htop Screenshot after switching to windows git

image

Possible Improvements

As already mentioned in the WSL issue that are numerous ways to improve the performance. One better solution is to use git.exe instead of the git command. But as also mentioned in the issue, this has also some drawbacks.
It would be great if the plandex cli would allow the user to choose the git executable to be used.

I managed to improve the situation by executing:

sudo mv /usr/bin/git /usr/bin/git2
alias git="git.exe"

This causes the WSL to default to git.exe. The performance is now better, but still not even close to a normal ubuntu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant