shuf: don't truncate -o output when input or random source fails#13113
shuf: don't truncate -o output when input or random source fails#13113sylvestre wants to merge 2 commits into
Conversation
Merging this PR will not alter performance
Comparing Footnotes
|
|
GNU testsuite comparison: |
|
he CodSpeed regression wasn't extra work - it was a lost inlining. Reproduced with cachegrind: the open_output closure plus three separate output-creation sites bloated uumain past the inliner's threshold, so shuf_exec got emitted out-of-line instead of inlined into uumain. Instruction/cache-miss counts were otherwise identical. Moved open_output to a plain helper and open the output once before the match (still after reading the input, so -o isn't truncated on failure) |
No description provided.