diff options
author | Pádraig Brady <P@draigBrady.com> | 2014-03-20 10:00:13 +0000 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2014-03-24 09:10:20 +0000 |
commit | 5f9a5b3f0346f4fb6b758953d4eaeff3d6a419d6 (patch) | |
tree | 1031618daa861c6df9dba9c0af076ef05b8427d9 /NEWS | |
parent | b010481e1fb24a22c22b6a279e8d24ed3ab4362a (diff) | |
download | coreutils-5f9a5b3f0346f4fb6b758953d4eaeff3d6a419d6.tar.xz |
split: avoid unnecessary input buffering
Input buffering is best avoided because it introduces
delayed processing of output for intermittent input,
especially when the output size is less than that of
the input buffer. This is significant when output
is being further processed which could happen if split
is writing to precreated fifos, or through --filter.
If input is arriving quickly from a pipe then this will
already be buffered before we read it, so fast arriving
input shouldn't be a performance issue.
* src/split.c (lines_split, lines_bytes_split, bytes_split,
lines_chunk_split, bytes_chunk_extract): s/full_read/safe_read/.
* THANKS.in: Mention the reporter.
* NEWS: Mention the improvement.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -45,6 +45,9 @@ GNU coreutils NEWS -*- outline -*- causing name look-up errors. Also look-ups are first done outside the chroot, in case the look-up within the chroot fails due to library conflicts etc. + split avoids unnecessary input buffering, immediately writing input to output + which is significant with --filter or when writing to fifos or stdout etc. + stat and tail work better with HFS+ and HFSX. stat -f --format=%T now reports the file system type, and tail -f now uses inotify for files, rather than the default of issuing a warning and reverting to polling. |