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 42483
- From: Joey Pabalinas <joeypabalinas@xxxxxxxxx>
- To: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- Subject: Re: Why sourcing a file is not faster than doing a loop with eval, zle -N
- Date: Sun, 18 Mar 2018 23:07:38 -1000
- Cc: "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>, Joey Pabalinas <joeypabalinas@xxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=dZ9gHtKnf63Cvg2N8ftCTLYBNyD0RHpXN1xPa6uUfyc=; b=RNwEsseX7QxMJrsIOr9kXEZWngnLsqxwnalCk14/QngiOng+8hgV30+DCKdT+lthKh HYnaoH02bod3un6qMZ1iRIijg/JENUNYsAinB61U3zsrdeKNikabkxdrCcTQs3p+1kEF EiIEmpTrQw9gkuA0nv3kfHtcWln078RtNyZ2z2fyIt4VjSg3pYksLAxu4u3gLD0u9bXW hONLU+YdindKj2U7yCpBGFYcP38qjtprrZmJYYfGcQTAqvuXNqveKxyhfHej0/rKAA/m DBYzJ3T53fXgvX+xALhQAZItcSwWgclvQHuyA7bvBL38vDKks0rkXdoiwuxx1sWpzKuv pmpw==
- In-reply-to: <7096.1521281564@thecus>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20171223221910.vmob22b7uosan5os@nibbler.alyptik.lan> <7096.1521281564@thecus>
> On Sat, Mar 17, 2018 at 11:12:44AM +0100, Oliver Kiddle wrote:
> I didn't really follow the original discussion. But if getline() solves
> an issue and the #ifdef mess to handle old systems isn't too bad (at
> least compared to the rest of the shell) then I'd say cook up a patch.
> For compatibility, getline() is the sort of thing where we can just
> include a replacement implementation so the mess can be separate from
> the actual code. I've included a suitable implementation below.
After spending a bit of time writing up a patch and testing it, getline()
unfortunately didn't seem to solve the original performance problem in
any sort of ground-breaking way, and so after thinking it over a bit
more, I don't really think this would end up being would be any sort
of worthwhile solution.
For such a tiny performance benefit, it seem like we would be better
served looking for a solution somewhere else.
The getline() replacement implementation was very appreciated, anyway; even
though this ended up going nowhere, it saved me a day or two in getting
here :)
--
Cheers,
Joey Pabalinas
Attachment:
signature.asc
Description: PGP signature
Messages sorted by:
Reverse Date,
Date,
Thread,
Author