karlmcdowall

Results 6 issues of karlmcdowall

Rework logic for handling all-but-last-lines and all-but-last-bytes for non-seekable files. Changes give large performance improvement.

On my laptop, I get the following results when running benchmarks for non-seekable files... ``` hyperfine "cat shakespeare.txt | head -n -100000" "cat shakespeare.txt | ./target/release/head -n -100000" Summary cat...

U - head

If the last line of a large file doesn't end with a newline then we get a discrepancy between GNU and Rust implementations. Steps to reproduce... 1 - make a...

U - head

Fixes #7472. Update to head app when printing all-but-last-n-lines of a file. Code now checks if the last line of the input file is missing a terminating newline character, and...

Hi! ### Background I've been looking at some of the open issues on the [Rust-coreutils](https://github.com/uutils/coreutils) project. In order to verify compatibility of the new Rust implementation with the established GNU...

**PLEASE DON'T MERGE!** Code is very much in the quick-prototype phase and very much not ready to be merged. Code is posted to demonstrate that the CTRL-C logic can be...