Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Possible huge setarrvalue optimization
- X-seq: zsh-workers 39996
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- Subject: Re: Possible huge setarrvalue optimization
- Date: Sun, 20 Nov 2016 09:41:48 -0800
- Cc: Sebastian Gniazdowski <psprint@xxxxxxxxxxxx>, Zsh hackers list <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Nk2tl0cRgP9fZEw7r7KqJkR56xVq5btlge4d9pKFUJs=; b=m/YOBVMkD0RXLaGJnkEO33FfgBV5HfydcIGL4v56EHymdkVGvS8Y/wPXuCgi59rBnz xL3rlYhPWcIQQB/Jku331yTgDlxpvtJ2WVifVdat3w6RgN4W5i1Snavl+mfBXYB7c2ih bPY/kAjuT1ZbsjvhzVuprtJmuFx+YuTWPUUnnqY4ZmGBi5l4ryWih4J3VtFRl2mvk3Ul iSAAG4yAXtH5D01UDjHLL3AgB/AVfGTHxTa3+As1lRH1bYcTb5lGSJ0Hd22k5XOiOA0G V1ADuFKsuwt+vHAdAglPqUXPTKgqTY38sNLXhNXEoG4vfuKGsuJx3KciziwzsTbrQ6eb mhoQ==
- In-reply-to: <20161120114648.GA6953@fujitsu.shahaf.local2>
- 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>
On Nov 20, 2016 3:49 AM, "Daniel Shahaf" <d.s@xxxxxxxxxxxxxxxxxx> wrote:
>
> Sebastian Gniazdowski wrote on Fri, Nov 18, 2016 at 04:20:20 -0800:
>
> > +
> > + if (pre_assignment_length != post_assignment_length ||
v->pm->node.flags & (PM_SPECIAL|PM_UNIQUE)) {
>
> Should this line check that «v->pm->gsu.a.setfn == arrsetfn»?
>
> Should this line check that «pm->ename == NULL» [since arrsetfn()
> handles such arrays specially]?
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author