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

VCS segment very slow in Mercurial repositories #2206

Open
benjunmun opened this issue May 23, 2022 · 0 comments · May be fixed by #2207
Open

VCS segment very slow in Mercurial repositories #2206

benjunmun opened this issue May 23, 2022 · 0 comments · May be fixed by #2207

Comments

@benjunmun
Copy link

After a recent OS upgrade, I've been having issues with my bash status line rendering very slowly while navigating around mercurial repositories.

I don't have a complete understanding of why this was not an issue before the upgrade. However, I have traced part of the problem to a temporary file that mercurial is creating/deleting in the .hg folder on every status operation. This invalidates powerline's VCS tree status cache and causes it to re-run the full status on every render.

I suspect there may be other contributing factors, but I'll submit a patch for ignoring the temporary files. Status is still noticeably slow when any file changes, but this at least makes the segment usable again for me.

Environment:
Latest git version of powerline (8af6302)
Linux / Ubuntu 22.04
Python 3.10.4
Mercurial 6.1.1
hglib 2.6.2
inotify watcher

benjunmun pushed a commit to benjunmun/powerline that referenced this issue May 23, 2022
Mercurial creates temporary files in the .hg directory while running
certain commands. The creation of these should not invalidate the tree
status cache for the repository.

Fixes powerline#2206
@benjunmun benjunmun linked a pull request May 23, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants