diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | TODO | 2 | ||||
-rw-r--r-- | awk.h | 4 | ||||
-rw-r--r-- | configh.in | 3 | ||||
-rwxr-xr-x | configure | 1 | ||||
-rw-r--r-- | configure.ac | 1 |
7 files changed, 18 insertions, 2 deletions
@@ -1,3 +1,9 @@ +2016-08-29 Aharon Robbins <aharon.robbins@intel.com> + + * configure.ac (fwrite_unlocked): Check for it. + * awk.h (fwrite): Define to fwrite_unlocked if we have it. + * NEWS: Make note of speed improvement. + 2016-08-25 Arnold D. Robbins <arnold@skeeve.com> POSIX now says use strcmp for == and !=. Thanks to Chet Ramey @@ -76,6 +76,9 @@ Changes from 4.1.x to 4.2.0 19. The extension API now provides a mechanism for generating nonfatal error messages. +20. Gawk now uses fwrite_unlocked if it's available. The yields a 7% - 18% + improvement in raw output speed (gawk '{ print }' on a large file). + Changes from 4.1.3 to 4.1.4 --------------------------- @@ -15,8 +15,6 @@ TODO Minor Cleanups and Code Improvements ------------------------------------ - Use fwrite_unlocked if available. Brings about 7% speedup for output. - API: ??? #if !defined(GAWK) && !defined(GAWK_OMIT_CONVENIENCE_MACROS) @@ -178,6 +178,10 @@ extern void *memset_ulong(void *dest, int val, unsigned long l); #define memset memset_ulong #endif +#ifdef HAVE_FWRITE_UNLOCKED +#define fwrite fwrite_unlocked +#endif /* HAVE_FWRITE_UNLOCKED */ + #if defined(__EMX__) || defined(__MINGW32__) #include "nonposix.h" #endif /* defined(__EMX__) || defined(__MINGW32__) */ @@ -48,6 +48,9 @@ /* Define to 1 if you have the `fmod' function. */ #undef HAVE_FMOD +/* Define to 1 if you have the `fwrite_unlocked' function. */ +#undef HAVE_FWRITE_UNLOCKED + /* have getaddrinfo */ #undef HAVE_GETADDRINFO @@ -9811,6 +9811,7 @@ esac # Need the check for mkstemp and tmpfile for missing_d/snprintf.c. for ac_func in __etoa_l atexit btowc fmod getgrent getgroups grantpt \ + fwrite_unlocked \ isascii iswctype iswlower iswupper mbrlen \ memcmp memcpy memcpy_ulong memmove memset \ memset_ulong mkstemp posix_openpt setenv setlocale setsid sigprocmask \ diff --git a/configure.ac b/configure.ac index bfe785db..518a7398 100644 --- a/configure.ac +++ b/configure.ac @@ -264,6 +264,7 @@ esac # Need the check for mkstemp and tmpfile for missing_d/snprintf.c. AC_CHECK_FUNCS(__etoa_l atexit btowc fmod getgrent getgroups grantpt \ + fwrite_unlocked \ isascii iswctype iswlower iswupper mbrlen \ memcmp memcpy memcpy_ulong memmove memset \ memset_ulong mkstemp posix_openpt setenv setlocale setsid sigprocmask \ |