From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22818 invoked by alias); 29 Feb 2016 19:12:04 -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: 21331 Received: (qmail 10733 invoked from network); 29 Feb 2016 19:12:03 -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,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=hREOlK5VpGQ0Q68779ZC6oeZvqAcbbG1oiCzGRCzZQI=; b=eXvf9EfFpkbdjGVc2OR8lUPfMksx1QbwMDx4FN+URtx8xxnlrUcbuX018B29kLPiDb ecBznzeVdIxTtsCL/GveLTWHGfOw3JdFdYPW4hgwMX8MHluX2k5o97YwX8N7+aCkjD6H oIqASt7wHG6BOjeb6sUEXcZIYwq4N/0aPRDwcKN01zHEdWWnmA1Nid24Mijr7xRd3dnR rg5dCeRIV2abQZ9pHH5UTrftBIOH6ixbv3QFv3gO+IXmnHST9VzQbiGhhHQGl5x7ivWH Wax+T9vmdDV0w8XdrFxEEnzlSQstslFHEwaKIkZUUHAlD+zCHZQ+HqfVLUuqsfVnJlcu pAPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version; bh=hREOlK5VpGQ0Q68779ZC6oeZvqAcbbG1oiCzGRCzZQI=; b=KGCyyshZ3LGgBauec9/IdVOv7kVgTroLHy3JI5VwdKfzIAVxstuEdvWuUOleRsf3oK FIg32mw7XZ/M+HqB3GetWFFPMG0r1VGDRK5VdZjDqCchHFCK8VaVfmDWQ1u+y9iJ5EtB NirYUEsPxj0OM+7+XZZ6DGmiL8K8CBMhWsqWpe/zh/tDNMLVYUSxZKClrtfv7ON+1Xs4 8WMGkZrjP+mNw/b7ig/uio267RcytnCWxCXvzbof/PY1I/O9HhXRqHdFYZxVfgsTuMeZ rjNjJ5A2dCc4SPFnfPF2h8f1cKVv+hw/nLOCisWAL9ttfGxNfYBJ8/ahMEOpe+uwOyJY zcUw== X-Gm-Message-State: AD7BkJLxyYyYMkfmYdEN35dm6eguM8NZg9gMWbCLfqaKNsTw7pxrTyDIB5O2TJkui+8U4w== X-Received: by 10.98.74.74 with SMTP id x71mr16587842pfa.135.1456773122553; Mon, 29 Feb 2016 11:12:02 -0800 (PST) From: Bart Schaefer Message-Id: <160229111212.ZM4272@torch.brasslantern.com> Date: Mon, 29 Feb 2016 11:12:12 -0800 In-Reply-To: Comments: In reply to Jesper Nygards "Extended globbing seems to have become much slower in recent versions of Zsh" (Feb 28, 9:18pm) References: X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Zsh Users Subject: Re: Extended globbing seems to have become much slower in recent versions of Zsh MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Feb 28, 9:18pm, Jesper Nygards wrote: } } The results of my experiments seem to indicate that something has changed } relatively recently with regards to extended globbing. There were a number of changes mostly related to correct handling of multibyte characters and single bytes in the range 128-255 appearing in file and directory names. This means some strings are passing through the "unmetafication" process more often than they were, but I can't say for sure this is the source of any slowdown. It'd be helpful if you re-ran your tests with more variations of the pattern: **/* **/*(-.D) **/*~(your long list of exclusions) (#i)**/*~(your long list of exclusions) **/*~(your long list of exclusions)(-.D) Also, first declare "float SECONDS" and then use "print $SECONDS" instead of "date", so we get a more precise measure of where the time is spent.