Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Slowness issue with git completion
- X-seq: zsh-workers 29083
- From: Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>
- To: Felipe Contreras <felipe.contreras@xxxxxxxxx>
- Subject: Re: Slowness issue with git completion
- Date: Wed, 27 Apr 2011 10:47:59 +0200
- Cc: Nikolai Weibull <now@xxxxxxxx>, Mikael Magnusson <mikachu@xxxxxxxxx>, zsh-workers@xxxxxxx
- In-reply-to: <BANLkTikODTsXkB82KhVhWBaAs9GcYnqBgg@mail.gmail.com> (Felipe Contreras's message of "Wed, 27 Apr 2011 11:30:12 +0300")
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <BANLkTinKo=W8umz=JfneD3MNYdmv=xYhFQ@mail.gmail.com> <87liyw7t0o.fsf@ft.bewatermyfriend.org> <BANLkTim6WJWCrfLokA045Sc8su8DMXnKNw@mail.gmail.com> <BANLkTi=eLWad_TB4L=chD=3Fb_Pd9AQyqQ@mail.gmail.com> <BANLkTi=PrLsikjVhA-e06gjEkkxDpsdVaw@mail.gmail.com> <BANLkTi=N0DjXbf70LCo422DQ_2b0_dK_AQ@mail.gmail.com> <BANLkTikwk=OUQ7TzQB6FNcD2wztj+LHOGw@mail.gmail.com> <BANLkTinadx+av3XhHrdem8aNqp=k7Gm69Q@mail.gmail.com> <BANLkTikLMKZmCAxt=Ac-t-R_ZccZMt3pqg@mail.gmail.com> <BANLkTi=AgTZNVCjqUB7LSbnQyMLPUfkT5Q@mail.gmail.com> <BANLkTik0cYpzkbOZxf+R=dyjhH_7-i++0w@mail.gmail.com> <BANLkTi=iJXX_gBxnGFmDmF4goLeK0OKL3Q@mail.gmail.com> <BANLkTikODTsXkB82KhVhWBaAs9GcYnqBgg@mail.gmail.com>
Felipe Contreras wrote:
> On Wed, Apr 27, 2011 at 9:11 AM, Nikolai Weibull <now@xxxxxxxx> wrote:
>>> Are you interested in fixing this use-case even if it means to make
>>> some compromises in correctness or not?
>>
>> No, I’m not.
>
> I am not used to zsh development, so is Nikolai's opinion shared by
> the rest? Even if I provide a fix that make things slightly less
> correct but usable, you wouldn't take the patch?
I for one, am very fond of the way completion is done (albeit, not its
performance in huge repositories). It actually *saves* me a whole lot
of time, because - for example - "git add" only completes file names
that actually *need* to be staged. So I would be firmly against
throwing out Nikolai's hard work.
As I was saying in another mail¹, I was also thinking about a scheme to
give the user the option to choose smart (and slow) and utterly-dumb
(and quick) file completion in various contexts via zstyle. A boolean
style is very quick to look up and wouldn't impact performance. That
way, each user could have it his/her way, fine tuned for all git
sub-commands. That would be something everyone should be able to live
with.
Also, improving performance of the existing code would be highly
appreciated.
Regards, Frank
¹ <87ei4o7p0h.fsf@xxxxxxxxxxxxxxxxxxxxxx>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author