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 42486
- From: Joey Pabalinas <joeypabalinas@xxxxxxxxx>
- To: Sebastian Gniazdowski <psprint@xxxxxxxxxxx>
- Subject: Re: Why sourcing a file is not faster than doing a loop with eval, zle -N
- Date: Mon, 19 Mar 2018 19:14:45 -1000
- Cc: Oliver Kiddle <okiddle@xxxxxxxxxxx>, "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>
- 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=RTbMb0Mkd0QQy2mXI9T7kQUpkkBsLFk3a8H5EJRbShY=; b=U7v4kvSd4utAqBvuvmfPm/hyEGIcvrJ07jcW9rQ/G4JtmMttFOPY1bzXvcUSF+3k4W iygRx9kBydk4P80FSgO8kb6BiOoPRW7SVZTM+QuPRjVn7MwLw97C4lZ+snzsqWOayZNo QRf+wvootNAguin8x9X9mUbv5sgjxgKYTvSAbC/ge7XkugXouv6xtMe8Da+dN5P9zAv9 GqG7W1J4UMHtYjS/EXEJFQ3BDSA64D+0Hecsl4nDNKyTx/AlyBb2PFKxTlW9mvWdKmh8 vPZb6HwFxuF8nEM032g4P7aUerQglOmiLY4MRa+a797wKecMqzvwnyai3qFvyPx/mGxe paQw==
- In-reply-to: <etPan.5aafc808.7ce5f63c.159ee@zdharma.org>
- 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> <20180319090738.hyri7bnr5siowjuk@gmail.com> <etPan.5aafc808.7ce5f63c.159ee@zdharma.org>
On Mon, Mar 19, 2018 at 03:24:08PM +0100, Sebastian Gniazdowski wrote:
> So in general all this would mean that getline doesn't provide
> performance gains comparing to current HEAD?
The memory allocation that getline() does seems to slow it down
considerably; in some cases the original was actually faster.
My other guess is that since fgetc()/getc() is very common
compilers spend a lot of effort doing special optimizations for
it, versus getline() which isn't used anywhere near as much.
--
Cheers,
Joey Pabalinas
Attachment:
signature.asc
Description: PGP signature
Messages sorted by:
Reverse Date,
Date,
Thread,
Author