[ ] Tuesday, 13 June 2017 [ ]

Implementing maybe

Pipe Viewer

Terminal based took for monitoring data through a pipeline:

port:fred ~/code/c/stuffc> ./yes | pv > /dev/null             
^C.1GiB 0:00:15 [3.16GiB/s] [        <=>                ]
port:fred ~/code/c/stuffc> /usr/bin/yes | pv > /dev/null
^C35MiB 0:00:12 [44.8MiB/s] [       <=>                  ]

yes.c

Was using pv to test through put with a yes.c based on reddit thread talking about the speed of yes.c. For me an interesting aspect of this is creating a buffer so that you can stuff many more characters through the process. This allow's GNU yes to be far faster, but the code is also larger 77loc compared to13loc.

Is the current speed of yes actually problematic?

c


$Id: dates.htm,v 1.1007 2017/10/09 21:22:21 fred Exp $

$Id: diary,v 1.27 2017/09/01 17:12:44 fred Exp $