Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

VCS segment very slow in Mercurial repositories #2206

Copy link
Copy link
Open
@benjunmun

Description

@benjunmun
Issue body actions

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.