]> git.ipfire.org Git - thirdparty/tar.git/commitdiff
Tune for single-threaded tar
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 8 Mar 2021 02:29:00 +0000 (18:29 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 8 Mar 2021 02:30:08 +0000 (18:30 -0800)
This takes advantage of recent optimizations in Gnulib
for single-threaded programs.
* configure.ac (GNULIB_EXCLUDE_SINGLE_THREAD)
(GNULIB_MBRTOWC_SINGLE_THREAD, GNULIB_REGEX_SINGLE_THREAD)
(GNULIB_WCHAR_SINGLE_LOCALE): Define.

configure.ac

index 87f690873d8c17efafc77eea1c1b0a32795d6b2b..d09789af8c3da65e4ae5847e41829b85a08361af 100644 (file)
@@ -102,6 +102,20 @@ gt_TYPE_SSIZE_T
 # gnulib modules
 gl_INIT
 
+AC_DEFINE([GNULIB_EXCLUDE_SINGLE_THREAD], [1],
+  [Define if all programs in this package call functions of the Gnulib
+   'exclude' module only from a single thread.])
+AC_DEFINE([GNULIB_MBRTOWC_SINGLE_THREAD], [1],
+  [Define if all programs in this package call functions of the Gnulib
+   'mbtowc' module only from a single thread.])
+AC_DEFINE([GNULIB_REGEX_SINGLE_THREAD], [1],
+  [Define if all programs in this package call functions of the Gnulib
+   'regex' module only from a single thread.])
+AC_DEFINE([GNULIB_WCHAR_SINGLE_LOCALE], [1],
+  [Define if all programs in this package call locale-sensitive functions
+   like mbrtowc only after setting the locale, and never change the
+   locale once set.])
+
 if test $ac_cv_lib_error_at_line = no; then
   # This means that the error() function is not present in libc, so
   # the one from gnulib will be used instead. This function precedes