Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Extended globbing seems to have become much slower in recent versions of Zsh
- X-seq: zsh-users 21335
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Extended globbing seems to have become much slower in recent versions of Zsh
- Date: Tue, 1 Mar 2016 10:28:07 -0800
- 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=3iYc9g3PPgLt3w9lMjwVEEuI4+px5XHfNSdUBbJ6eGs=; b=KinxGZU0xvY3lnzLVV7zhJWFs2Vfk3ZDFjpmuPHahQh7iaN1RW4ry+XABMFc3trDAt rXZjg+zY2HNVpV6dtbKTnGuNxuUyM37QuJQV0znfOSYEXXIM4xS7QLAT1RCxztZYI6BC iOgCraXP0A790JB6pe7rUw91FSZrbCo23PYKnxyRddQqvykBCpX8XAljwNTblUHA/tS9 rB92HUAGvOxWF80Xf89zRn+h21cduffcSqUrxFsUDAHeQ+7C8B2pduDrL8luiZGzHNjg 93XkAIns360abOrK/onUC4kPdAxBtoIgtY2PxY7Xp033ZziL58XIjqEs2GzNKCE79fMu LSkA==
- In-reply-to: <CABZhJg84-E=P0-194mwQz4oGkZfwgBnevViBjMUZz7c2PV-a6A@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CABZhJg--GUe_1zfXxvvX4Dn=t8MgqG2e7poFCSFKKtC3a3AQ7g@mail.gmail.com> <160229111212.ZM4272@torch.brasslantern.com> <CABZhJg84-E=P0-194mwQz4oGkZfwgBnevViBjMUZz7c2PV-a6A@mail.gmail.com>
On Mar 1, 12:39pm, Jesper Nygards wrote:
}
} Here's another run with your supplied patterns. I hope I didn't
} misunderstand how you wanted me to use the SECONDS variable.
Close enough.
} In any case, as you can see below, the globbing more or less takes the same
} time for the simple patterns, but as soon as I introduce the exclusions,
} the 5.2 version is around six times slower than the 5.0.5 version.
That tends to point to changes in pattern matching rather than globbing
(related but distinct operations), but can you also try it with
: pattern-goes-here
instead of
myfiles=( pattern-goes-here )
?? I'd like to factor out the contributions of memory management for the
array assignment. I ran a couple of quick local tests and with assignment
there are about 50% more calls to malloc in the current git head than in
5.0.5, but without assignment there are slightly fewer in current.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author