split: do not shrink hold buffer
commitc4c5ed8f4e9cd55a12966d4f520e3a13101637d9
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 16 Jan 2024 21:48:32 +0000 (16 13:48 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 17 Jan 2024 20:19:14 +0000 (17 12:19 -0800)
tree11941f1ef8dddedd77a1ae05c28841e25c3aa4f5
parentb09dc6306e7affaf002f67350b9787c550ddb5c2
split: do not shrink hold buffer

* src/split.c (line_bytes_split): Do not shrink hold buffer.
If it’s large for this batch it’s likely to be large for the next
batch, and for ‘split’ it’s not worth the complexity/CPU hassle to
shrink it.  Do not assume hold_size can be bufsize.
src/split.c