From: Matthew Fernandez Date: Sat, 12 Sep 2020 19:07:04 +0000 (-0700) Subject: remove block size optimization in sfio X-Git-Tag: 2.46.0~20^2^2~76^2~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a4ef379675a49f5f02f5d99457e6468c1c86f429;p=graphviz remove block size optimization in sfio Related to #1422 and #1521. --- diff --git a/lib/sfio/sfsetbuf.c b/lib/sfio/sfsetbuf.c index 8f92661d1..cf2090d4b 100644 --- a/lib/sfio/sfsetbuf.c +++ b/lib/sfio/sfsetbuf.c @@ -154,11 +154,6 @@ void *sfsetbuf(Sfio_t * f, void * buf, size_t size) if (fstat((int) f->file, &st) < 0) f->here = -1; else { -#if defined(HAVE_SYS_STAT_H) && _stat_blksize /* preferred io block size */ - if ((blksize = (ssize_t) st.st_blksize) > 0) - while ((blksize + (ssize_t) st.st_blksize) <= SF_PAGE) - blksize += (ssize_t) st.st_blksize; -#endif if (S_ISREG(st.st_mode) || S_ISDIR(st.st_mode)) f->here = SFSK(f, (Sfoff_t) 0, SEEK_CUR, f->disc); else