bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Chet Ramey
Subject: Re: [PATCH 5.1] zread: read files in 4k chunks
Date: Mon, 22 Jun 2020 12:35:10 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.9.0

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/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]