From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27289 invoked by alias); 2 Mar 2016 09:33:05 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21339 Received: (qmail 12928 invoked from network); 2 Mar 2016 09:33:04 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-AuditID: cbfec7f5-f79b16d000005389-f3-56d6b34d4601 Date: Wed, 02 Mar 2016 09:32:59 +0000 From: Peter Stephenson To: Zsh Users Subject: Re: Extended globbing seems to have become much slower in recent versions of Zsh Message-id: <20160302093259.653a5c7b@pwslap01u.europe.root.pri> In-reply-to: <160301160356.ZM10258@torch.brasslantern.com> References: <160229111212.ZM4272@torch.brasslantern.com> <160301102807.ZM8036@torch.brasslantern.com> <160301160356.ZM10258@torch.brasslantern.com> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrPLMWRmVeSWpSXmKPExsVy+t/xK7q+m6+FGcy7omex4+RKRgdGj1UH PzAFMEZx2aSk5mSWpRbp2yVwZZy92s1UcJu94vW0WewNjNPZuhg5OCQETCS6/2R1MXICmWIS F+6tBwpzcQgJLGWUWPN4DztIQkhgGpPErq98EInTjBKH55xlgnDOMEq82fIBrIpFQFXi652L rCA2m4ChxNRNsxlBbBEBRYkzv74xgdjCAtESE94tZgaxeQXsJb4cesUMcgWngJXE4yUcEDPf MUmcvniYBaSGX0Bf4urfT0wQ59lLzLxyhhGiV1Dix+R7YDXMAloSm7c1sULY8hKb17xlhrha XeLG3d3sExiFZyFpmYWkZRaSlgWMzKsYRVNLkwuKk9JzjfSKE3OLS/PS9ZLzczcxQoL56w7G pcesDjEKcDAq8fBmfLoaJsSaWFZcmXuIUYKDWUmEN2bTtTAh3pTEyqrUovz4otKc1OJDjNIc LErivDN3vQ8REkhPLEnNTk0tSC2CyTJxcEo1MF7cMy0pcEriuqWrt7KyBU468Sz88T3jz9EG 0QqfK+8fVWv15PG43Kt2x0rvetVc9isp/A4Xnn7WcVTasPrO8lCP3/V1lcLTHq/uXftmk0vR nkRR6Q2tb/jv58ha3PZTuzK1+YHsz0c/Ju151/XcZtbsaz577cJPPpn95DWb7QvxC5+UT6xs 3PRViaU4I9FQi7moOBEAR4uI3GICAAA= On Tue, 01 Mar 2016 16:03:56 -0800 Bart Schaefer wrote: > On Mar 1, 8:11pm, Jesper Nygards wrote: > } > } New runs with your suggestion: > > Well, that's interesting. Seems to indicate that building argv to pass > to builtins is even more expensive than an array assignment. > > Still, I can't find anything on my system that causes as dramatic a > difference as yours from 5.0.5 -> 5.2+. The (-.D) qualifiers seem to > have the largest effect for me, for you its the exclusion pattern. >... > I did find a small but observable speedup when compiling without > MULTIBYTE_SUPPORT, too; there were a lot of multibyte repairs to > pattern.c after 5.0.5. There was a fairly recent optimsiation to handle patterns by metafying earlier in the case of parameter substitutions. Globbing shouldn't have been substantially affected although the order of operations is a bit different. I don't see how this could be relevant, though. pws