Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Large LS_COLORS makes auto_cd very slow
- X-seq: zsh-users 16996
- From: Václav Zeman <vhaisman@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Large LS_COLORS makes auto_cd very slow
- Date: Mon, 09 Apr 2012 10:23:48 +0200
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type; bh=aP2HOsTrFgldC5B7S19p+6BAljPiNU3vC63S12YqGvc=; b=qQJbjgorL/oYX156PVJ4zmYvHqaF/SedTaXkxSZ/AxX4UnFdL6OgN3fIsGoUo5Nfzg 6HDAKmlpi1yOXuke/QANNosLAyBPWXAYy8/MEplH+E1Wx8lSeKQxB2jmwmHurQr0Eymv 7RWKjbRB9dmMxsYAuzUZahSZihQbCE+cvwj97wCwcckCczeB6Pz4P4nTyy+k3E2gEW70 EFkiZ8lAOjKGt2G7L2u1d2CPu9Bn6wZblciJyy+42P4hI1t5wTit/wxNikHqWKu2NN1q XjFows6Nr+GY0AKjdLEm/+WTeqRyv6jv9dDLPBblDwlwUdTqRNRPRfa4kM9siP2LpI5t IaKA==
- In-reply-to: <CAKw7uVgBwObws9V1nFCaBGAYof_r2DjwcP2ajxKNoMNUuCOVwA@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CABZhJg-xieMZAOEmbYzSb5T-3O8aLNurvPk=SiXsPGjTpAMg-Q@mail.gmail.com> <jesper.nygards@gmail.com> <120404005237.ZM10249@torch.brasslantern.com> <CAKw7uVh4X_VoJxqtjjC9Cvv2ZS2-xfr29kHyAqyG3V1=DyPQTg@mail.gmail.com> <120405085125.ZM13673@torch.brasslantern.com> <CAKw7uVgBwObws9V1nFCaBGAYof_r2DjwcP2ajxKNoMNUuCOVwA@mail.gmail.com>
On 04/06/2012 11:49 AM, Václav Zeman wrote:
> On 5 April 2012 17:51, Bart Schaefer wrote:
>> On Apr 5, 11:30am, Vaclav Zeman wrote:
>> }
>> } > Anybody want to have a stab at creating a vastly more efficient version
>> } > of Src/params.c:arrayuniq() ?
>> } I wonder if the attached patch does what you want here. It is fairly
>> } untested and incomplete as I have not been able to find out how to
>> } make sure that search.h gets included.
>>
>> Zsh has its own hash table implementation which ought to be used rather
>> than introducing any new external dependencies, but otherwise this is
>> the kind of thing I was suggesting.
>>
>> Or perhaps someone else has an even more clever idea. Anything better
>> than O(N^2) would help.
> I have reimplemented the change using ZSH's own hash table. Please see
> the attached patch.
>
I have put the changes onto github: <git://github.com/wilx/zsh.git>
--
VZ
Attachment:
signature.asc
Description: OpenPGP digital signature
Messages sorted by:
Reverse Date,
Date,
Thread,
Author