From 1204b29babbd3288686b118fb9cc103dd8d5f2b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A1draig=20Brady?=
Date: Sun, 5 Apr 2026 13:04:03 +0100 Subject: [PATCH] build: update to latest gnulib Pick up mbrto{c32,wc} optimizations on UTF-8 on GLIBC. Note configure.ac defines the required GNULIB_WCHAR_SINGLE_LOCALE. This speeds up wc -m by 2.6x, when processing non ASCII chars, and will similarly speed up per character processing in the impending cut multi-byte implementation. * NEWS: Mention the wc -m speed improvement. --- NEWS | 3 +++ gnulib | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 2fabd07b7..98f0724e3 100644 --- a/NEWS +++ b/NEWS @@ -68,6 +68,9 @@ GNU coreutils NEWS -*- outline -*- 'wc -l' now operates up to four and a half times faster on hosts that support Neon instructions. + 'wc -m' now operates up to 2.6 times faster on GLIBC when processing + non-ASCII UTF-8 characters. + 'yes' now uses zero-copy I/O on Linux to significantly increase throughput. E.g., throughput improved 15x from 11.6GiB/s to 175GiB/s on a Power10 system. diff --git a/gnulib b/gnulib index dbd5c0e93..305e58f2f 160000 --- a/gnulib +++ b/gnulib @@ -1 +1 @@ -Subproject commit dbd5c0e936cc56b4572b029273118892c64a5cdc +Subproject commit 305e58f2f803035bccfe051c29d8ffd3d13dfdbc