From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15067 invoked by alias); 4 Mar 2016 08:17:14 -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: 21348 Received: (qmail 15414 invoked from network); 4 Mar 2016 08:17:12 -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,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=kIjaNh20HBiUobjh7vhILKaTjGpYvyTqlILYSzSSzkc=; b=PpiRanlDd3CWlvXAHneQxkRNtB3FqE8Xcz1Acgpkq/j0vUhku5vY0UtRC6tXJBkugw Eusfk5aN4L/RWA+LwFplrxQKP3qJX7peFsVmhyVPkOlaz7NAl3yFiQLdVqspD02VTxrw +TQTs2YIUfAxCQGwiNCT/VoWr03HL2VYzffT0rKipm7HkughTW0MwOvnULpsTKC+N+vt EjLhBHRabUcYfr7EMt0h+8bAhnxztpLECc/nywBDOB6tPFvmsE1giIJioX2eyGl6/pYe joLqltIK88ajg2huvTg+WC4TrAu60KfMI9EKE/S7lL3h+KjKvl1/P/0ZhKJf2azJCiZY tgmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=kIjaNh20HBiUobjh7vhILKaTjGpYvyTqlILYSzSSzkc=; b=YV2ybupb2S7rDUlZkRi8MNg75Z1ZWe8LipHE4iXq0/U6CKhG3PbL4D3pX3jKP3HKQV LjQlnHZEMswFAlsR4fNj2NKKI5ZhUHDfgxL+1KOF8dEgKj2gmA00/TAHNNz3s0hFKLim DL43uz0FJyYKGcbqTNmFO4kb6mBv3V4DZeDgfkOB77pezqweIRixbbGxMiedA1TjEj4+ CFGTPH+lof1Yn4wu+89/JnTmaIMjnuLpx8hozVh5Srctpsu9PYbWujyjn08/PolPTm1S jOrwr1AMD9CgUZ4xQlL3rHg11QgLLm8YWCf+ZIJVLa45aOhmTeDHpPiLXsTOtHnh2i/o rmNQ== X-Gm-Message-State: AD7BkJJgqA98X8GeXkaZrq02ce5dRCnli3vK/zNr3xIFHCAQt0wi7wg1TYGAXrBa5digFUiT0J0rlQSZeg489A== MIME-Version: 1.0 X-Received: by 10.112.140.169 with SMTP id rh9mr2198493lbb.69.1457079427090; Fri, 04 Mar 2016 00:17:07 -0800 (PST) In-Reply-To: References: <160229111212.ZM4272@torch.brasslantern.com> <160301102807.ZM8036@torch.brasslantern.com> <160301160356.ZM10258@torch.brasslantern.com> Date: Fri, 4 Mar 2016 09:17:06 +0100 Message-ID: Subject: Re: Extended globbing seems to have become much slower in recent versions of Zsh From: =?UTF-8?Q?Jesper_Nyg=C3=A5rds?= To: Zsh Users Content-Type: multipart/alternative; boundary=001a11c25934a94daf052d34bd3a --001a11c25934a94daf052d34bd3a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I have run 5.2, compiled with and without the --with-stack-allocation flag. It made no difference however. You can see that the runs below are very similar in the measured times. With "--with-stack-allocation": % zsh --version zsh 5.2 (x86_64-apple-darwin14.5.0) % /usr/local/bin/zsh -f % setopt EXTENDED_GLOB; float SECONDS MYNOW % MYNOW=3D$SECONDS; : **/*~(|*/)(build|target|node|node_modules|.idea|*.min.js|*.iml|TAGS)(|/*)(-= .D); print $(( $SECONDS - $MYNOW )) 54.868589 % MYNOW=3D$SECONDS; : (#i)**/*~(|*/)(build|target|node|node_modules|.idea|*.min.js|*.iml|TAGS)(|/= *)(-.D); print $(( $SECONDS - $MYNOW )) 47.001608000000019 % MYNOW=3D$SECONDS; : **/*~(|*/)(build|target|node|node_modules|.idea|*.min.js|*.iml|TAGS)(|/*); print $(( $SECONDS - $MYNOW )) 38.805462000000006 % MYNOW=3D$SECONDS; : (#i)**/*~(|*/)(build|target|node|node_modules|.idea|*.min.js|*.iml|TAGS)(|/= *); print $(( $SECONDS - $MYNOW )) 32.296016000000009 ------------------------------------------------------- Without "--with-stack-allocation": % /usr/local/bin/zsh --version zsh 5.2 (x86_64-apple-darwin14.5.0) % /usr/local/bin/zsh -f % setopt EXTENDED_GLOB; float SECONDS MYNOW % MYNOW=3D$SECONDS; : **/*~(|*/)(build|target|node|node_modules|.idea|*.min.js|*.iml|TAGS)(|/*)(-= .D); print $(( $SECONDS - $MYNOW )) 53.115647000000003 % MYNOW=3D$SECONDS; : (#i)**/*~(|*/)(build|target|node|node_modules|.idea|*.min.js|*.iml|TAGS)(|/= *)(-.D); print $(( $SECONDS - $MYNOW )) 42.988532000000006 % MYNOW=3D$SECONDS; : **/*~(|*/)(build|target|node|node_modules|.idea|*.min.js|*.iml|TAGS)(|/*); print $(( $SECONDS - $MYNOW )) 36.619570999999993 % MYNOW=3D$SECONDS; : (#i)**/*~(|*/)(build|target|node|node_modules|.idea|*.min.js|*.iml|TAGS)(|/= *); print $(( $SECONDS - $MYNOW )) 30.786290000000008 On Thu, Mar 3, 2016 at 1:06 AM, Bart Schaefer wrote: > On Wed, Mar 2, 2016 at 12:39 AM, Jesper Nyg=C3=A5rds > wrote: > > Previously I was using the Apple-provided version of 5.0.5, and the > > Homebrew version of 5.2. Now I have instead used different versions of > > Homebrew zsh, and I have made sure that the compiler flags were the sam= e > > through all versions. I have then run the same tests again, with versio= ns > > 5.0.5, 5.0.6, 5.1 and 5.2. > > OK, thanks; next thing to try: configure --with-stack-allocation > > I've scanned through diffs and I just don't see any structural changes > that would account for that slowdown; the above is a bit of a > longshot. > > Incidentally (for -workers) there's a typo in ChangeLog -- 32932: > Src/glob.c -- should say Src/subst.c. > --001a11c25934a94daf052d34bd3a--