split: process more efficiently when filters exit early
commit0839e6d8d9371b7301133c6a2799bab1c906d2e1
authorPádraig Brady <P@draigBrady.com>
Mon, 20 Mar 2017 00:22:34 +0000 (19 17:22 -0700)
committerPádraig Brady <P@draigBrady.com>
Sun, 26 Mar 2017 22:20:26 +0000 (26 15:20 -0700)
tree68a93325d6e09faf4b0bcbf440ee83980c31cffa
parenta79dbb97bfb2fff7905221f2437da19472b9ba23
split: process more efficiently when filters exit early

* src/split.c (bytes_split): Don't write to an existing filter
if it has exited.  When filters exit early, skip input data if
possible.  Refactor out 2 redundant variables.
* tests/split/filter.sh: Improve test coverage given the
new more efficient processing.  Also use a 10TB file to
expand the file systems tested on.
src/split.c
tests/split/filter.sh