Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Slowdown around 5.0.5-dev-0
- X-seq: zsh-workers 36824
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Slowdown around 5.0.5-dev-0
- Date: Sat, 10 Oct 2015 20:11:52 +0200
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=qt8YhlfLDvI6SZNh9qbzR4LsZ+xHZC0QY8HxF1odSso=; b=JIetmJCPZeSTbpNgQFM9L3EXFxOoqhPFKv5pDGpRgpITX6wOfdDp8X+UW+eLWsWkNI q/RAiHbYH/2/OmDxReqHexE5FkvRPROuHKIoQmjQLopT07A2TkSL0bzwaT/eDxAX1j+l K/C+Ding7AxFNEZBVJwETYcz4qy14CypKaMiIgb5ILn55kFZ2sCJ6iqb/CddMpmNuOSV 9P7AmgiGmc4hGmOqIX41qS0Cs4I47rUcjZAi075PLTuW0N4HuqzVpjfyUAh8nMimWAST 4tuekrDaBctB3U2QwdpguHSvM/fTcKY9rCcoF3TLpGcBIWaSpsTwFXxnkXs+1BatwMn+ 3+EA==
- In-reply-to: <151010105849.ZM10144@torch.brasslantern.com>
- 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: <CAKc7PVDAS+yud1ChCsAMMKqNF=vEPcbN51czm56veKcS3WZxyg@mail.gmail.com> <151010105849.ZM10144@torch.brasslantern.com>
On 10 October 2015 at 19:58, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On the other hand the shell really isn't intended to be manipulating
> arrays of containing tens of thousands of elements.
I was afraid that this will be stated, by you as the author of the
patch. It's just such a great thing that patterns are so fast, faster
than regular expressions (from zsh/regex). And that they are so
advanced. I can do fancy things like filtering for multiple words with
*foo*~^*bar*, colorizing output by using (#m) which is faster than
(#b) and provided for someone aware to utilize that gain and
functionality. What I mean is that we shouldn't now slip into "shell
isn't for that, anyway" after providing so much.
PS. Not everything is so great, I was successfully optimizing my code
by changing if[] into [] && || in crucial places. Removing variables
as even a single assignment seems to cost much. But overall there's
plenty in speed and functionality.
Best regards,
Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author