Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #16430

Re: [PATCH 5.1] zread: read files in 4k chunks

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: [PATCH 5.1] zread: read files in 4k chunks
Date 2020-06-22 12:35 -0400
Organization ITS, Case Western Reserve University
Message-ID <mailman.265.1592843718.2574.bug-bash@gnu.org> (permalink)
References <20200622055328.155106-1-Jason@zx2c4.com> <3cac1f66-697d-396d-3dc8-fc5b621638a4@case.edu>

Show all headers | View raw


On 6/22/20 1:53 AM, Jason A. Donenfeld wrote:
> Currently a static sized buffer is used for reading files. At the moment
> it is extremely small, making parsing of large files extremely slow.
> Increase this to 4k for improved performance. 

I bumped it up to 1024 initially for testing.

> This also allows reading
> files like /dev/kmsg on Linux, which will error if the read buffer is
> too small.

What is the minimum size for those reads?

Chet


-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: [PATCH 5.1] zread: read files in 4k chunks Chet Ramey <chet.ramey@case.edu> - 2020-06-22 12:35 -0400

csiph-web