Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: When is following code being run?
- X-seq: zsh-workers 39925
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Sebastian Gniazdowski <psprint@xxxxxxxxxxxx>
- Subject: Re: When is following code being run?
- Date: Sat, 12 Nov 2016 11:40:41 +0000
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=uanExpnBQJM9kl5 rHuxa5JLku8c=; b=kTK8DKP3PYp0Znt4E5/TXKH66fRGrM5l5x5ELvHpLLLl2Dh lBPV6LwenU2pyRSqTSPIEZf+CfAtMwUy+Gj+SjaJBJHUbmbLzFqYCWWHOAIDR0OY PKexqyYy9PNeEPOwHptnLu7zvRSAii3BYa4ZWY9VNGtsjfokxm4AN1Os16iU=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=smtpout; bh=uanExpnBQJM9kl 5rHuxa5JLku8c=; b=pgD6w86dVbAuCYgyWqhN1oy9ZcTHW5xzN3hJCZu0kB80HG 5iry6dnqimGQ8aNxJjWH8mR/sE51qCwHKH45nzt0TLVvBCLu4Cny4ATtJ/ak0muy D5hZ1W1QCN3G/vAzMrEJ8Jq1R40M1ILbaP+PR+qRUC7adbOPV4XW1vAi/Y+TM=
- In-reply-to: <1478946184.2939151.785456169.516647E1@webmail.messagingengine.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: <1478946184.2939151.785456169.516647E1@webmail.messagingengine.com>
Sebastian Gniazdowski wrote on Sat, Nov 12, 2016 at 02:23:04 -0800:
> Hello,
> file params.c, line 1572 and following in the else block:
>
> https://github.com/zsh-users/zsh/blob/master/Src/params.c#L1572-L1583
>
The link will bitrot: http://www.zsh.org/cgi-bin/mla/redirect?WORKERNUMBER=37966
> The strlen can be optimized out, as getstrvalue has most probably ran it
> already. I wonder about benefits, as there will be probably none, as "
> if (pprog && pattry(pprog, d) &&" and similar code consumes probably 95%
> of CPU cycles. But would test this, who knows.
zsh -f -c 'foo=bar; : $foo[(r)a]'
enters that code.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author