1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 20:17:45 +00:00

cat: Formatting performance improvement (#7642)

* cat: Formatting performance improvement

Use memchr library in `cat` to improve performance when detecting
newlines.
Significantly improves performance when running with -n, -s, -E, -b
flags.


Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>

---------

Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
This commit is contained in:
karlmcdowall 2025-04-04 15:47:28 -06:00 committed by GitHub
parent 88cf66174f
commit e6ff6d5c69
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 3 deletions

1
Cargo.lock generated
View file

@ -2535,6 +2535,7 @@ name = "uu_cat"
version = "0.0.30"
dependencies = [
"clap",
"memchr",
"nix",
"thiserror 2.0.12",
"uucore",