Improve performance when reading stdin
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest3 patches 0 repliesNew
- v23 patches 0 repliesSuperseded
- v13 patches 0 repliesSuperseded
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | input: Move newline loop into preadbuffersrc/ | +31 | 0 replies | |
| 2/3 | input: Use lseek on stdin when possiblesrc/ src/ src/ +6 more | +111 | 0 replies | |
| 3/3 | input: Use tee(2) for stdin pipeconfigure.ac src/ src/ | +72 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [v3 PATCH 0/3] Improve performance when reading stdin
v3 rebases on multibyte patch-set v5.
The performance when reading stdin has regressed after we started reading one byte at a time. This patch series uses lseek(2) and tee(2) to recover performance where possible.
Herbert Xu (3):
input: Move newline loop into preadbuffer
input: Use lseek on stdin when possible
input: Use tee(2) for stdin pipe
configure.ac | 2 +- src/eval.c | 3 + src/init.h | 1 + src/input.c | 208 +++++++++++++++++++++++++++++++++++++++----------- src/input.h | 4 + src/jobs.c | 3 + src/mkinit.c | 6 ++ src/options.c | 2 +- src/redir.c | 26 ++++--- src/system.h | 7 ++ src/trap.c | 1 + 11 files changed, 205 insertions(+), 58 deletions(-)
Signature · 1 line
2.39.2