Re: [PATCH] newlib: fix fseek optimization with SEEK_CUR

Corinna Vinschen <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
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
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAl3SbmgACgkQ9TYGna5E
T6ABZhAAlvFUSNNpd17aYEjyYtjb1W2MnvVnDmU2YxeLBkUxg3QIJlJjPu98mN4Y
tP1qVM33tzHVOLAGspVzXPOeG+3cMQG4qSU41Yg1bFRhzIfh7qww25kutHsEq4Cy
RjqPi6k+j6eOSm2QpEMyF/NNRUL7ru5RztB07fYRPlcaP6Jn7r73FU42PHwLpfQl
XUFbcpvJOWGrIC2nvGVcvK1IDoUCCa7eNSWYck2XwpFm6AFmjBPnz1OtvQjSj9U1
TOm1GWiqBDFmv37EmRfmervjTRbkzEnUpbB1qzgj0svzUBQfZNaPGg8DIxGDgzMW
L2gksb64bYcu9z4Ke/wVpga/+RcmQqvIfTTuMDqdapyXxLRtA5B15ToCpSRWsGQl
ZQ+aVy2hSDtjc8b73ShRdWLL9DKPxVxuHq0SDKKnxxWuygAA4eJHTTe6eDKjft4B
xuAwRUMnT8Y7oGlDDEgVAwTEq+Uw4RYr5EP0MLpv+6i13Ps4ptDlpemill88iDz1
G28bxay+CupWFD3VZt27KXNyOswXnmSK5VAnGZHNftkV8wEAmngbChQIT/yFO8zh
Z1gSCvo4M1XhgksmBwKIT9GDFLsHANV06EHpDDL9eLTTb5FtIRABfJorUYvfQhGH
90YEYBmVxWhxTkLyKsqqU0+d6pnFA9Oe65CuSN6ZTBj1T0nY3xA=
=DnA4
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.