From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16514 invoked by alias); 10 Oct 2015 18:12:15 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 36824 Received: (qmail 766 invoked from network); 10 Oct 2015 18:12:14 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 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== X-Received: by 10.112.72.193 with SMTP id f1mr9586178lbv.12.1444500731790; Sat, 10 Oct 2015 11:12:11 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <151010105849.ZM10144@torch.brasslantern.com> References: <151010105849.ZM10144@torch.brasslantern.com> From: Sebastian Gniazdowski Date: Sat, 10 Oct 2015 20:11:52 +0200 Message-ID: Subject: Re: Slowdown around 5.0.5-dev-0 To: Bart Schaefer Cc: zsh-workers@zsh.org Content-Type: text/plain; charset=UTF-8 On 10 October 2015 at 19:58, Bart Schaefer 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