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

Re: Optimized by doing $var instead of "$var", but does this vary to some extent?



On Mon, Aug 6, 2018, 7:44 AM Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
wrote:

>
> But maybe some quotings are slowing down and some helping? Does
> someone know Zsh code to hint that sometimes quoting in "$var"-like
> way can help performance?
>

My guess would be that it has something to do with array handling and
memory allocation, so e.g. the sooner you can force an array to become a
string (if eventually it will be treated as one) the better -- but this is
just a guess.


Messages sorted by: Reverse Date, Date, Thread, Author