Repository navigation
split: write each run of lines to a chunk with a single write - #16357
Conversation
Merging this PR will improve performance by ×3.31 warning
Performance Changes
Tip Curious why performance improved? Comment Comparing Footnotes
|
1eababf to
f99d0c1
Compare
f99d0c1 to
9c421ca
Compare
|
GNU testsuite comparison: |
|
thanks for this PR! |
9c421ca to
608b5fe
Compare
608b5fe to
a5397a2
Compare
LineChunkWriter issued one write(2) per line. Since custom_write was replaced by write_all, that per-line overhead grew and split_lines regressed by about 26% on CodSpeed. Like GNU, gather the lines of the read buffer that go to the same chunk and write them at once.