Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] readhistfile: avoid thousands of lseek(2) syscalls via ftell()
- X-seq: zsh-workers 45398
 
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
 
- To: Michael Stapelberg <michael+zsh@xxxxxxxxxxxxx>
 
- Subject: Re: [PATCH] readhistfile: avoid thousands of lseek(2) syscalls via ftell()
 
- Date: Fri, 7 Feb 2020 21:54:00 -0800
 
- Cc: "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>
 
- In-reply-to: <CANnVG6=LfCpg7SQyiGreLzDLKi2Za0pUDR3cCzV6T6cquUr1GA@mail.gmail.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>
 
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
 
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
 
- References: <CANnVG6=LfCpg7SQyiGreLzDLKi2Za0pUDR3cCzV6T6cquUr1GA@mail.gmail.com>
 
On Thu, Feb 6, 2020 at 11:48 PM Michael Stapelberg
<michael+zsh@xxxxxxxxxxxxx> wrote:
>
> Before this change, zsh startup time was dominated by lseek(2) system calls on
> the history file
Curious.  I would have thought stdio buffering would mask most of the
need for lseek()ing by ftell().
Messages sorted by:
Reverse Date,
Date,
Thread,
Author