public inbox for dash@vger.kernel.org
 help / color / mirror / Atom feed
* [v2 PATCH 0/3] Improve performance when reading stdin
@ 2024-05-19  5:22 Herbert Xu
  2024-05-19  5:22 ` [v2 PATCH 1/3] input: Move newline loop into preadbuffer Herbert Xu
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Herbert Xu @ 2024-05-19  5:22 UTC (permalink / raw)
  To: DASH Mailing List

v2 rebases on the new multibyte patch-set.

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(-)

-- 
2.39.2


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-05-19  5:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-19  5:22 [v2 PATCH 0/3] Improve performance when reading stdin Herbert Xu
2024-05-19  5:22 ` [v2 PATCH 1/3] input: Move newline loop into preadbuffer Herbert Xu
2024-05-19  5:23 ` [v2 PATCH 2/3] input: Use lseek on stdin when possible Herbert Xu
2024-05-19  5:23 ` [v2 PATCH 3/3] input: Use tee(2) for stdin pipe Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox