coreutils
[Top][All Lists]
Advanced

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

Re: [coreutils] [PATCH] fadvise: new module providing a simpler interfac


From: Eric Blake
Subject: Re: [coreutils] [PATCH] fadvise: new module providing a simpler interface to posix_fadvise
Date: Tue, 20 Jul 2010 08:12:57 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100621 Fedora/3.0.5-1.fc13 Lightning/1.0b2pre Mnenhy/0.8.3 Thunderbird/3.0.5

On 07/20/2010 07:52 AM, Pádraig Brady wrote:
> To get the same benefits noticed with `sort`
> http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=commit;h=dae35bac
> I'm applying the same hint to all appropriate utils in the attached.

@@ -238,6 +243,7 @@ wc (int fd, char const *file_x, struct fstatus *fstatus)
         }
       else
         {
+         fdadvise (fd, 0, 0, FADVISE_SEQUENTIAL);
           while ((bytes_read = safe_read (fd, buf, BUFFER_SIZE)) > 0)

Wonky indentation.

-- 
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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