[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Emacs-diffs] master de76a16: Performance improvements for vc-hg
From: |
Daniel Colascione |
Subject: |
Re: [Emacs-diffs] master de76a16: Performance improvements for vc-hg |
Date: |
Mon, 8 Feb 2016 12:11:46 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 |
On 02/08/2016 11:55 AM, Stefan Monnier wrote:
>>>>>> "Daniel" == Daniel Colascione <address@hidden> writes:
Huh. Where is that old email address coming from?
>> Teach vc-hg how to read some Mercurial internal data structures,
>> allowing us to avoid the need to run hg status -A, which is very slow
>> for large repositories. Fall back to running hg if anything looks
>> funny. vc-hg now puts the _working directory_ revision in the
>> modeline instead of the file revision, which greatly improves
>> performance and which allows us to again skip running hg in the case
>> that we have an active bookmark.
>
> Thanks Daniel. Having written the same kind of thing for Bzr (tho it
> was much simpler in that case), and taking a step back, I think this
> reflects a mistake in VC: we probably just shouldn't provide such
> detailed info in the modeline, or at least not until the user makes
> explicit use of VC.
>
> Having to go through the trouble of re-implementing part of the VCS to
> parse the internal data to figure out the working revision, even though
> we have no idea if the user will ever care, is deeply unsatisfactory.
I find the information useful, and we can now get it cheaply. Users can
easily remove vc-hg from vc-handled-backends if they don't want the
functionality.
What might be worthwhile is making it easier to use vc for a file if
that file's correct vc backend isn't vc-handled-backends --- that is, in
that mode, we'd initialize the vc goo only when the user asks for it. I
don't think that mode should be the default though.
signature.asc
Description: OpenPGP digital signature
- Re: [Emacs-diffs] master de76a16: Performance improvements for vc-hg, Stefan Monnier, 2016/02/08
- Re: [Emacs-diffs] master de76a16: Performance improvements for vc-hg,
Daniel Colascione <=
- Re: [Emacs-diffs] master de76a16: Performance improvements for vc-hg, Eli Zaretskii, 2016/02/08
- VC's modeline (was: [Emacs-diffs] master de76a16: Performance improvements for vc-hg), Stefan Monnier, 2016/02/08
- Re: VC's modeline, Óscar Fuentes, 2016/02/08
- Re: VC's modeline, Stefan Monnier, 2016/02/09
- Re: VC's modeline, Óscar Fuentes, 2016/02/09
- Re: VC's modeline, Stefan Monnier, 2016/02/10
- Re: VC's modeline, Dmitry Gutov, 2016/02/13