Re: [dev] [sbase] Changing BUFSIZ

From: Michael Forney <mforney_AT_mforney.org>
Date: Wed, 14 Jun 2017 09:49:11 -0700

On 6/13/17, Mattias Andrée <maandree_AT_kth.se> wrote:
> On Linux, the performance of cat(1) can be doubled
> when cat(1):ing from one pipe to another, by compiling
> with -DBUFSIZ=(1<<16) (the default pipe capacity).
> This is close to optimial for a read(3)/write(3)
> implementation.

Agreed. On my sbase branch, I bumped it up to 8192 (from 1024 on musl)
and noticed significant performance improvements.

Speaking of a read(3)/write(3) implementation, I should ping my IO
improvement patch series thread...
Received on Wed Jun 14 2017 - 18:49:11 CEST

This archive was generated by hypermail 2.3.0 : Wed Jun 14 2017 - 19:00:10 CEST