Repository navigation
split: avoid opening output for empty input - #14973
Conversation
Merging this PR will degrade performance by 3.48%
|
| Mode | Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|---|
| ❌ | Simulation | split_number_chunks_round_robin |
30.1 ms | 31.3 ms | -3.88% |
| ❌ | Simulation | split_bytes |
624 µs | 643.8 µs | -3.08% |
Tip
Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.
Comparing mattsu2020:split-io-err.sh (080c257) with main (84d75fc)2
Footnotes
-
438 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩
-
No successful run was found on
main(cef1364) during the generation of this report, so 84d75fc was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩
|
GNU testsuite comparison: |
Kudos and thanks! |
Fixed-size split modes open the first output before reading input, creating or truncating files and failing on output directories even for empty input. Check for input data before opening any output, add empty-input regressions, and strengthen output-error checks.
Closes #12934