[PATCH] newlib: fix fseek optimization with SEEK_CUR
Corinna Vinschen
vinschen@redhat.com
Mon Nov 18 10:11:00 GMT 2019
On Nov 9 17:28, Bastien Bouclet wrote:
> The call to fflush was invalidating the read buffer, preventing relative
> seeks to positions that would have been inside the read buffer from
> being optimized. The call to srefill would then re-read mostly the same
> data that was initially in the read buffer.
> ---
> newlib/libc/stdio/fseeko.c | 31 ++++++-------------------------
> newlib/libc/stdio64/fseeko64.c | 31 ++++++-------------------------
> 2 files changed, 12 insertions(+), 50 deletions(-)
Pushed.
Thanks,
Corinna
--
Corinna Vinschen
Cygwin Maintainer
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20191118/b32362d4/attachment.sig>
More information about the Newlib
mailing list