Skip to content

Commit

Permalink
tail: improve performance of piped stdin
Browse files Browse the repository at this point in the history
Rewrite handling of stdin when it is piped and read input in chunks.

Fixes uutils#3842
  • Loading branch information
Joining7943 committed Aug 24, 2022
1 parent bbd0ef9 commit fa51fe8
Show file tree
Hide file tree
Showing 28 changed files with 3,512 additions and 71 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions src/uu/tail/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@ path = "src/tail.rs"
[dependencies]
clap = { version = "3.2", features = ["wrap_help", "cargo"] }
libc = "0.2.132"
notify = { version = "=5.0.0-pre.16", features=["macos_kqueue"]}
uucore = { version=">=0.0.15", package="uucore", path="../../uucore", features=["ringbuffer", "lines"] }
memchr = "2.5.0"
notify = { version = "=5.0.0-pre.16", features = ["macos_kqueue"] }
uucore = { version = ">=0.0.15", package = "uucore", path = "../../uucore", features = ["ringbuffer", "lines"] }

[target.'cfg(windows)'.dependencies]
winapi = { version="0.3", features=["fileapi", "handleapi", "processthreadsapi", "synchapi", "winbase"] }
winapi-util = { version="0.1.5" }
winapi = { version = "0.3", features = ["fileapi", "handleapi", "processthreadsapi", "synchapi", "winbase"] }
winapi-util = { version = "0.1.5" }

[target.'cfg(unix)'.dependencies]
nix = { version = "0.25", features = ["fs"] }
Expand Down
Loading

0 comments on commit fa51fe8

Please sign in to comment.