]> git.ipfire.org Git - thirdparty/coreutils.git/commit
cat,cp,mv,install,split: Set the minimum IO block size used to 32KiB
authorPádraig Brady <P@draigBrady.com>
Fri, 6 Mar 2009 22:30:55 +0000 (22:30 +0000)
committerPádraig Brady <P@draigBrady.com>
Wed, 11 Mar 2009 14:19:08 +0000 (14:19 +0000)
commit55efc5f3ee485b3e31a91c331f07c89aeccc4e89
tree95b9123d558a3583053b103ca8a294a0dcc84464
parent93f6771e82401f4c88219938602d4f09628301f4
cat,cp,mv,install,split: Set the minimum IO block size used to 32KiB

This is following on from this change:
[02c3dc9d 2008-03-06 cat: use larger buffer sizes ...]
which increased the IO block size used by cat by 8 times,
but also capped it at 32KiB.
* NEWS: Mention the change in behavior.
* src/system.h: Add a new io_blksize() function that
returns the max of ST_BLKSIZE or 32KiB, as this was
seen as a good value for a minimum block size to use
to get good performance while minimizing system call overhead.
* src/cat.c: Use it.
* src/copy.c: ditto
* src/split.c: ditto
NEWS
src/cat.c
src/copy.c
src/split.c
src/system.h