Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] readhistfile: avoid thousands of lseek(2) syscalls via ftell()



Apparently not :). I tried looking into the corresponding glibc code
to see if anything changed here, but it’s really hard to follow with
all its macros. AFAICT, though, ftell is just never buffered.

On Sat, Feb 8, 2020 at 6:54 AM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> 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