[Toybox] [PATCH] xxd: buffer input via stdio.
Oliver Webb
aquahobbyist at proton.me
Mon Apr 22 16:46:59 PDT 2024
On Monday, April 22nd, 2024 at 18:45, Rob Landley <rob at landley.net> wrote:
> On 4/22/24 17:17, enh via Toybox wrote:
>
> > ---
> > toys/other/xxd.c | 6 ++++--
> > 1 file changed, 4 insertions(+), 2 deletions(-)
>
>
> What's the issue this fixes? It's not:
>
> for i in $(seq 1 100); do echo $i; sleep 1; done | ./xxd
>
> Because that won't produce output for a couple minutes...
Look in the other xxd thread, this speeds up the command by about 10Mb/s Because it
was reading only 16 bytes at a time, and this makes it read 4096
- Oliver Webb <aquahobbyist at proton.me>
More information about the Toybox
mailing list