Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

One more heap optimization trick for zsh < 5.2



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