bug-gawk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [EXTERNAL] Re: Performance issues using GAWK 3.1.6 ->from Win 2008 t


From: arnold
Subject: Re: [EXTERNAL] Re: Performance issues using GAWK 3.1.6 ->from Win 2008 to Win 2016
Date: Tue, 15 Jun 2021 01:51:06 -0600
User-agent: Heirloom mailx 12.5 7/5/10

Wolfgang Laun <wolfgang.laun@gmail.com> wrote:

> The durations 10 min and 90 min suggest to me that a lot of i/o is going
> on. I have experienced performance changes of a similar order of magnitude
> due to changes in the default i/o buffer size.
> -W

This is an interesting idea. Eli, what if you supply a binary built
with the following patch?

Thanks,

Arnold
--------------------
diff --git a/pc/gawkmisc.pc b/pc/gawkmisc.pc
index 4e58b0a8..4be131b8 100644
--- a/pc/gawkmisc.pc
+++ b/pc/gawkmisc.pc
@@ -165,6 +165,9 @@ optimal_bufsize(fd, stb)
 int fd;
 struct stat *stb;
 {
+#if 1
+       return 4096;
+#else
        /* force all members to zero in case OS doesn't use all of them. */
        memset(stb, '\0', sizeof(struct stat));
 
@@ -182,6 +185,7 @@ struct stat *stb;
            && 0 < stb->st_size && stb->st_size < DEFBLKSIZE) /* small file */
                return stb->st_size;
        return DEFBLKSIZE;
+#endif
 }
 
 /* ispath --- return true if path has directory components */



reply via email to

[Prev in Thread] Current Thread [Next in Thread]