coreutils
[Top][All Lists]
Advanced

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

Re: [PATCH] Speedup wc -l


From: Pádraig Brady
Subject: Re: [PATCH] Speedup wc -l
Date: Mon, 23 Mar 2015 12:03:39 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

It just occurred to me that we could simplify from 3 to 2 loops,
while also making the code more adaptive to the input,
by simply determining the average line length per block.

I'll push the attached later.

thanks,
Pádraig.

Attachment: wc-l-adaptive.patch
Description: Text Data


reply via email to

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