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 [email protected] +1-801-349-2682
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
