Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
One more heap optimization trick for zsh < 5.2
- X-seq: zsh-users 21520
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: One more heap optimization trick for zsh < 5.2
- Date: Sun, 8 May 2016 11:34:20 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=iZ3Zou3ur2JBmJvHQjNYYDzFyqhqxjXwGEjh6gg/xEw=; b=FoAPB9fLFKEg3pZprjFXQzFIfyUnvA/9IW//DirmQxjRJRKaG1K4xfCR5E7/But4F8 GSylGg0hiOMApfEFxTebX7ifKLvJMdIq3Fjk97SGQqLJ7+V9sqUoUi9QczkMvPsM+lxt DPmCGm1+ny9mfMHcDMgKCygXjMozLl6HnhUh14p7v4NrfOAllBQa5wcy/QMSmwju9fSl cLArLQlu4RwskD35N1I9pjPKPqKc0WhjLxPLiDEnq1oImSC9KSD83MCKJIIbHp1I3bb+ Cvqeb84rAT2O3X3G4/bzdxFAgTLBfHpCZWwYUWUSumx7IQrtYX4iZKChOAxZsBSeEvHj ACXA==
- 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
Hello,
there's this trick that makes the operation faster on zsh < 5.2 (5.2
is optimized):
repeat 1; do
list=( "${(@M)list:#(#i)*$~search_pattern*}" )
done
I've recently found my system to be less responding to this trick. Not
sure what's happening. I thought that there's maybe an even better way
to change how heap works for given operation? What else could allocate
new heap (what's AFAIK "repeat 1; do" block does)?
Best regards,
Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author