From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20115 invoked by alias); 8 May 2016 09:34:44 -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: 21520 Received: (qmail 17082 invoked from network); 8 May 2016 09:34:43 -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, 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:from:date:message-id:subject:to; bh=iZ3Zou3ur2JBmJvHQjNYYDzFyqhqxjXwGEjh6gg/xEw=; b=FoAPB9fLFKEg3pZprjFXQzFIfyUnvA/9IW//DirmQxjRJRKaG1K4xfCR5E7/But4F8 GSylGg0hiOMApfEFxTebX7ifKLvJMdIq3Fjk97SGQqLJ7+V9sqUoUi9QczkMvPsM+lxt DPmCGm1+ny9mfMHcDMgKCygXjMozLl6HnhUh14p7v4NrfOAllBQa5wcy/QMSmwju9fSl cLArLQlu4RwskD35N1I9pjPKPqKc0WhjLxPLiDEnq1oImSC9KSD83MCKJIIbHp1I3bb+ Cvqeb84rAT2O3X3G4/bzdxFAgTLBfHpCZWwYUWUSumx7IQrtYX4iZKChOAxZsBSeEvHj ACXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=iZ3Zou3ur2JBmJvHQjNYYDzFyqhqxjXwGEjh6gg/xEw=; b=MQPcfbFEl6lqJ20IpeU895OsNi6UERtS4DpjDlFmS7iMPNtqnlRUUWlI5qLBqD7/js TOyxTiLJoqCilL22VQYBKeKtjVui/U2h+I3nsau5gwBLVR+gY161JwEGQtZxqLdjiCp2 /u7eaC32Wv879dT8a9n0BtiWZp7BTKta2yHyta99T3F5KX+6SxAydCGBGpLGGr43VpKn FxSRWK9ai50X5RKuk55MTTrIQhLfNVOjRzLgySLcvQkBGophsPfIVSrF36KUFSZLYs62 WzPUM/9ghRyt0IcTWCpFq+zgloyPxeWlDYEOiHI5o6orR66Np7/7eJ6QtPFa7RFXirBh TSJQ== X-Gm-Message-State: AOPr4FVv7IrS3EWucJ8kV6M1jPWOeudu0uSQIv20VhMPqyQeHSjUjIdXQOoR1CqMkTfvB2pJsebh2uj165/kDQ== X-Received: by 10.25.169.69 with SMTP id s66mr3372306lfe.150.1462700079974; Sun, 08 May 2016 02:34:39 -0700 (PDT) MIME-Version: 1.0 From: Sebastian Gniazdowski Date: Sun, 8 May 2016 11:34:20 +0200 Message-ID: Subject: One more heap optimization trick for zsh < 5.2 To: Zsh Users Content-Type: text/plain; charset=UTF-8 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