summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2013-04-20 08:46:43 +0100
committerPádraig Brady <P@draigBrady.com>2013-05-23 11:13:24 +0100
commitfec363cebf581ef27f6d01686dec5a0499aa6818 (patch)
tree59d03cfaae216cc0dc4f9ec221f375fe7b605b14 /NEWS
parent478dade09a4288f73e963b7f185ef9f73b681b42 (diff)
downloadcoreutils-fec363cebf581ef27f6d01686dec5a0499aa6818.tar.xz
split: with --line-bytes only allocate memory as needed
* src/split.c (line_bytes_split): Rewrite to only buffer when necessary. I.E. only increase the buffer when we've already lines output in a split and we encounter a line larger than the input buffer size, in which case a hold buffer will be increased in increments of the input buffer size. (lines_rr): Use the more abstract xalloc_die() just like we did in line_bytes_split(), rather than explicitly printing the "memory exhausted" message and exiting. * tests/split/line-bytes.sh: Add a new test for this function which previously had no test coverage. * tests/local.mk: Reference the new test. * NEWS: Mention the improvement. Fixes http://bugs.gnu.org/13537
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index eec93dfd0..721e05bf5 100644
--- a/NEWS
+++ b/NEWS
@@ -48,6 +48,9 @@ GNU coreutils NEWS -*- outline -*-
Reservoir sampling is used to limit memory usage based on the number of
outputs, rather than the number of inputs.
+ split --line-bytes=SIZE, now only allocates memory as needed rather
+ than allocating SIZE bytes at program start.
+
** Build-related
factor now builds on aarch64 based systems [bug introduced in coreutils-8.20]