mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
split: use ByteChunkWriter and LineChunkWriter
Replace `ByteSplitter` and `LineSplitter` with `ByteChunkWriter` and `LineChunkWriter` respectively. This results in a more maintainable design and an increase in the speed of splitting by lines.
This commit is contained in:
parent
ca7af808d5
commit
1d7e1b8732
3 changed files with 65 additions and 59 deletions
5
tests/fixtures/split/fivelines.txt
vendored
Normal file
5
tests/fixtures/split/fivelines.txt
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
Loading…
Add table
Add a link
Reference in a new issue