Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
When is following code being run?
- X-seq: zsh-workers 39924
- From: Sebastian Gniazdowski <psprint@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: When is following code being run?
- Date: Sat, 12 Nov 2016 02:23:04 -0800
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.com; h= content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= mesmtp; bh=+VTIsyice4l/luneTH2OEw2h8Xo=; b=ZAoOd//9KDv/56IPiGL80 xdvmOaAZcMM045Z5/gWSYTkAdw6yrO7Ff4k1wDnmpa2XuVjkUeIBMwd2aoFKKcid Ng+C8xFyko2WtSrfEv3+V7p9A4S2so6uboxKnwsUAX8K+4CX+hieYNySLgEk+xsy FpZL5kPlYRxuhcXm6gwu3M=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=smtpout; bh=+VTIsyice4l/luneTH2OEw2h8 Xo=; b=R8MJqM3nyQV9Ieley59CKJ3bT8Q3EKz+tSgsHHfAeNVPoknrD5Cn30y2r PCUT4rTGtfuQSdqvteycATpRZSOS9Ezaaz6odXypo9oCuU3+mlo5nCimtFgI3hT5 KVmljOmll3VGMTjmYtq3AQTjDAYST5MS6pMxzeFa77/TFVRsh8=
- 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
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 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.
--
Sebastian Gniazdowski
psprint@xxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author