On Wed, 7 Aug 2013 22:12:17 +0530, Ramkumar Ramachandra <[email protected]> 
wrote:
> Pieter Praet wrote:
> > That would indeed be very useful, but do keep in mind that the
> > '__git_ps1' stuff causes very noticeable delays in large repositories,
> > and the vc modeline stuff was recently disabled by default [1] due to
> > its performance impact.
> 
> Yeah, it effectively runs `git status` to get what it needs. If the
> repository isn't in hot cache (ie. after a reboot or a movie break,
> both of which are very rare), it takes upto 30 seconds to get a
> prompt: if I don't turn on the prompt, I'll have to wait that amount
> of time when I execute `git status` by hand anyway. Effectively, the
> prompt is just displaying information that's available for free, for
> the most part.

Well, it does quite a bit more than just running git-status(1) [1].

Try cloning Arch's AUR mirror [2] into a tmpfs and just hitting return in it:

Even when reading directly from RAM, it takes about half a second for
the prompt to return.

And besides fetching the result from Git, we'd need to post-process
it in Elisp, *every time* we need to update the modeline, for example
*every time* we save a file.

Free it isn't...

But don't get me wrong, I do agree that it would be a nice feature to have!


Peace

-- 
Pieter

[1] https://github.com/git/git/blob/master/contrib/completion/git-prompt.sh
[2] git://pkgbuild.com/aur-mirror.git

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"magit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to