Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Slowness issue with git completion
- X-seq: zsh-workers 29085
- From: Felipe Contreras <felipe.contreras@xxxxxxxxx>
- To: Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>
- Subject: Re: Slowness issue with git completion
- Date: Wed, 27 Apr 2011 12:06:56 +0300
- Cc: Nikolai Weibull <now@xxxxxxxx>, Mikael Magnusson <mikachu@xxxxxxxxx>, zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=S4IX86LrWrUMpPYq93V2p19LVGQGMPdaGmbzI0PqeQs=; b=SZSpQoTvM7CiT/sFQLOUqvCSU+h3FegfHFhlgZ0sPclZU/INidob6jX2uVvd99VnFc D1OEUe3IvJY9uM/xx/jGHCjUf3B0xxgAss7MaEtYmzq0kzhVPgynJdDNI1Pn4gGRK3GM Rre8WwJnnR925HPbqrhg8eAHTZF6FSuJcnC8Q=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=YwHR7Uv+KqpKk84j4uJNzXckSj+5b2Sh2uqwLiVV22O0clzPK76nQOhBzJ9Ln+70Rp tWhx5IqURkD7wohXvYH+WPzZNu580MND2O/GrscwCXKMYQ2Vorx8+tTD5o9VfJmI5V+G Xgow/lf1un56+cTSI+P8lZ/WEzRCzXusHRKiU=
- In-reply-to: <87sjt43wsg.fsf@ft.bewatermyfriend.org>
- 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> <87sjt43wsg.fsf@ft.bewatermyfriend.org>
On Wed, Apr 27, 2011 at 11:47 AM, Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx> wrote:
> 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.
I believe the only way to achieve good performance is to write new
helper commands in git.git. I could do that, but first I want the
completion to be fast _now_, and only when the "correct" completion
performs in a reasonable way, then enable it.
Since I'm not seeing a huge amount of reasonable responses (usability
is not important), I'm thinking there's really no point in trying to
improve the zsh completion and I should use the bash one instead.
--
Felipe Contreras
Messages sorted by:
Reverse Date,
Date,
Thread,
Author