Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: A way to untie -T vars?
- X-seq: zsh-users 28696
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- Cc: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>, Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: A way to untie -T vars?
- Date: Sat, 21 Jan 2023 09:50:13 -0800
- Archived-at: <https://zsh.org/users/28696>
- In-reply-to: <CAN=4vMqyG8U=116uVhhEFhs2SSoK3aOb789Ki0iXBzQoAMCucQ@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <CAKc7PVDEmKnY9TiYwaAgvzXEqNhLwZo46paUPjJOz9HsU3_djg@mail.gmail.com> <CAH+w=7aEqLC4kSSMnvffNdP1XbeXhNTxvBPiL44WJc9YauPHcA@mail.gmail.com> <CAN=4vMqyG8U=116uVhhEFhs2SSoK3aOb789Ki0iXBzQoAMCucQ@mail.gmail.com>
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