Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Possible huge setarrvalue optimization
- X-seq: zsh-workers 39997
- From: Sebastian Gniazdowski <psprint@xxxxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Possible huge setarrvalue optimization
- Date: Sun, 20 Nov 2016 12:54:41 -0800
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=mesmtp; bh=SBnDCddaEgziA6K725uq/1ZtYT A=; b=ZSZ/Kg8LRLUzVKp6UGg20SwEWUU9BQHQpYraPknZs3jZrH+EsdNIpyWxOZ pVO6935e4mWZB54P8bmFfr7+gwiuS85Y9DTKOXv+m2Fl3UXvIbEfAwetVsYbFVBF yc+3AZlinUICus9/0VXUdPkqPE0Po3wCjrEC9AljAXc/As8+M=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=smtpout; bh=SB nDCddaEgziA6K725uq/1ZtYTA=; b=lIMBwXMTm1VirhhcJw2UUrqWz1EpQ3H7bt RXAng0iPrPGrOAIs82FhQxhJdfeSkrQ4GdiGxCTxZkduBm5A75ewF5n7FNAxvyPp pc0iSdgEXsHQJPhbn1bU9TWHss6YGGcpEOVtjKZJa6lpnJZdw3xCMlr+4YMuem8j a8oiF3qU0=
- In-reply-to: <CAH+w=7YsEm=3WF_fs5Zyv9n+z7QOtwyOqss6Yv9Vpvtdqz_eiA@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <1479449829.1305485.791811385.14DDFE28@webmail.messagingengine.com> <1479461540.1340250.791913609.27FAD722@webmail.messagingengine.com> <1479471620.1371132.792049209.295BE093@webmail.messagingengine.com> <20161120114648.GA6953@fujitsu.shahaf.local2> <CAH+w=7YsEm=3WF_fs5Zyv9n+z7QOtwyOqss6Yv9Vpvtdqz_eiA@mail.gmail.com>
On Sun, Nov 20, 2016, at 09:41 AM, Bart Schaefer wrote:
> Thanks for pointing out those possible details. I know from
> implementing the param_private module that this part of the code is
> really important to assumptions made downstream -- it may appear safe
> to "give away" strings based on local examination here but in fact
> cause problems outside this function.
> This and the proposed getstr optimization both make me nervous. I
> know Sebastian is anxious to have them appear in the next release, but
> it feels and if we should have more time using them in dev branches.
Not much problem to not see this in 5.3, my code doesn't benefit much,
however it's a very cool thing that allows to do typeset -a arr;
arr[max_size] = 2000, and then freely write to not reallocated array –
really, arrays of size 5000 are unusable without the patch when storing
to single fields, times are too large. I counted on feedback about what
might break, was from some time aware of the ename, curiously tied
arrays/scalars work fine, but the environment fixing on not empty ename
is a problem.
Best regards,
Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author