wc: increase I/O size from 16 KiB to 256KiBmaster
commitccf47cad93bc0b85da0401b0a9d4b652e4c930e4
authorPádraig Brady <P@draigBrady.com>
Thu, 9 May 2024 13:03:38 +0000 (9 14:03 +0100)
committerPádraig Brady <P@draigBrady.com>
Thu, 9 May 2024 14:03:56 +0000 (9 15:03 +0100)
tree061cfc143f1c7f85839f54210e40878579d2c464
parentdd976cae239a4cc4d0111b3aa4a228afc2c2c308
wc: increase I/O size from 16 KiB to 256KiB

Similarly to commit v9.4-143-gfcfba90d0,
and enabled for AVX by commit v9.5-25-g0e4450103.

This was seen to improve AVX performance by about 10%
on an AMD 7800X3D (Ryzen 7 (2023)) CPU,
while having neutral AVX performance,
on an Intel i7-5600U (Broadwell-U (2015)) CPU.
With avx not enabled, this gives about a 3% performance boost,
on an Intel i7-5600U.

* src/wc.c: Use the centrally configured optimum buffer size.
* src/wc_avx2.c: Likewise.
* NEWS: Mention the change in performance.
NEWS
src/wc.c
src/wc_avx2.c