Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Why sourcing a file is not faster than doing a loop with eval, zle -N
- X-seq: zsh-workers 41322
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: Why sourcing a file is not faster than doing a loop with eval, zle -N
- Date: Mon, 19 Jun 2017 12:57:29 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=LwbwRWLoeAyeg4flEyCX2pORaNU2vS9/vTBQupKYQ14=; b=nDaJP8uokjFUBlEI1ZfIrd9G1J++rnjyb/ph/dXId3m4zaSNvTiGRcQhHxGc6c793Q M8VPyEFsd7lLW3g4WoPW44fQQ2vlnLqoTBSdmXAFDCbeSe32tVj4K8/gLAQkLPe25MR2 wDxT1oG2uZigWcacbuP3C0WTiDVo6rHcdz7nMxisbfFBFvbf6MXgbcWA18Io+t9dv0LJ Y6Ysu4PhRQiK76b+N96QYuGHkZ/DOTQd3ziHe1Ju9el2WW7Y/VVrmHMb8WqzhkezRFhM A2klg6tyLmgwFBzWgiva8UEOsDA0RbtT+cEJ6jW7IwAPIziklFvzEjcbGoaTWX91uRuV 1vtQ==
- In-reply-to: <20170619202835.7f207185@ntlworld.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: <etPan.594513a8.516100cd.10b2e__10513.1716504276$1497699329$gmane$org@zdharma.org> <20170619122413.GA9294@chaz.gmail.com> <170619083116.ZM17323__41722.0601499595$1497886320$gmane$org@torch.brasslantern.com> <20170619161601.GB9294@chaz.gmail.com> <20170619202835.7f207185@ntlworld.com>
On Jun 19, 8:28pm, Peter Stephenson wrote:
}
} How about something like this?
If that's really OK, then I think there's a simpler patch:
diff --git a/Src/input.c b/Src/input.c
index 92abaec..73e8b26 100644
--- a/Src/input.c
+++ b/Src/input.c
@@ -144,9 +144,9 @@ shingetline(void)
int q = queue_signal_level();
p = buf;
+ winch_unblock();
+ dont_queue_signals();
for (;;) {
- winch_unblock();
- dont_queue_signals();
do {
errno = 0;
c = fgetc(bshin);
@@ -176,7 +176,8 @@ shingetline(void)
ll += p - buf;
line[ll] = '\0';
p = buf;
- unqueue_signals();
+ winch_unblock();
+ dont_queue_signals();
}
}
}
--
Barton E. Schaefer
Messages sorted by:
Reverse Date,
Date,
Thread,
Author