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

Re: A way to untie -T vars?



On Sat, Jan 21, 2023 at 9:48 AM Roman Perepelitsa
<roman.perepelitsa@xxxxxxxxx> wrote:
>
> A quick test shows that VAR=${(j.:.)${(us.:.)VAR}} is slightly faster
> than `typeset -T VAR _VAR`.

I suspect we're missing some context -- e.g., perhaps new values are
repeatedly being appended to $VAR and it's slow to re-split the full
string every time?




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