zsh-users
 help / color / mirror / code / Atom feed
* One more heap optimization trick for zsh < 5.2
@ 2016-05-08  9:34 Sebastian Gniazdowski
  2016-05-08 16:35 ` Bart Schaefer
  0 siblings, 1 reply; 9+ messages in thread
From: Sebastian Gniazdowski @ 2016-05-08  9:34 UTC (permalink / raw)
  To: Zsh Users

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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-06-12 15:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-08  9:34 One more heap optimization trick for zsh < 5.2 Sebastian Gniazdowski
2016-05-08 16:35 ` Bart Schaefer
2016-05-16 15:01   ` Sebastian Gniazdowski
2016-05-17 10:18     ` Bart Schaefer
2016-05-18 15:16       ` Sebastian Gniazdowski
2016-06-11  3:30     ` Bart Schaefer
2016-06-11  7:40       ` Sebastian Gniazdowski
2016-06-11  8:07         ` Sebastian Gniazdowski
2016-06-12 15:39         ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).