svn commit: r319897 - head/usr.bin/yes

Bryan Drewery bdrewery at FreeBSD.org
Thu Jun 15 15:36:12 UTC 2017


On 6/15/2017 7:17 AM, Ronald Klop wrote:
> On Wed, 14 Jun 2017 16:27:52 +0200, Bryan Drewery <bdrewery at freebsd.org>
> wrote:
> 
>> On 6/14/2017 7:26 AM, Justin Hibbits wrote:
>>> On Wed, Jun 14, 2017 at 9:19 AM, Bryan Drewery <bdrewery at freebsd.org>
>>> wrote:
>>>> On 6/13/2017 5:35 AM, Pietro Cerutti wrote:
>>>>> Author: gahr (ports committer)
>>>>> Date: Tue Jun 13 12:35:01 2017
>>>>> New Revision: 319897
>>>>> URL: https://svnweb.freebsd.org/changeset/base/319897
>>>>>
>>>>> Log:
>>>>>   Improve yes' throughput
>>>>>
>>>>>   On my system, this brings up the throughput from ~20 to ~600 MiB/s.
>>>>>
>>>>>   Inspired by:
>>>>> https://www.reddit.com/r/unix/comments/6gxduc/how_is_gnu_yes_so_fast/
>>>>>
>>>>>   Reviewed by:        cognet
>>>>>   Approved by:        cognet
>>>>>
>>>>> Modified:
>>>>>   head/usr.bin/yes/yes.c
>>>>
>>>>
>>>> While here we should add libxo support.
>>>>
>>>> -- 
>>>> Regards,
>>>> Bryan Drewery
>>>>
>>>
>>> I think before we add libxo, we need to capsicumize it.  After all, it
>>> does accept arbitrary arguments.
>>
>> The code has become more complex.  I think capsicum does make sense now
>> in case there is an unseen overflow in the new optimized code.
>>
>>
> 
> It already has capsicum...
> https://svnweb.freebsd.org/base?view=revision&revision=308432
> 
> :-)

Doh, perfect!

Now we need libxo support.  I need a constant stream of <yes>.

-- 
Regards,
Bryan Drewery

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20170615/b3ed7da2/attachment.sig>


More information about the svn-src-head mailing list