From 55b8a30049a0797789c8929094bbb074cfd7469d Mon Sep 17 00:00:00 2001 From: briggs Date: Wed, 6 Jun 2007 17:49:14 +0000 Subject: Dynamically allocate the buffer used for reading data from the input handle and default to 64k instead of the 1k (BUFSIZ) static buffer. This makes a large difference in performance of some applications. Make the buffer size tunable from the command line. --- progress.1 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'progress.1') diff --git a/progress.1 b/progress.1 index 3a19ab1..ac35bd3 100644 --- a/progress.1 +++ b/progress.1 @@ -1,4 +1,4 @@ -.\" $NetBSD: progress.1,v 1.12 2007/04/12 06:31:20 lukem Exp $ +.\" $NetBSD: progress.1,v 1.13 2007/06/06 17:49:14 briggs Exp $ .\" .\" Copyright (c) 2003-2007 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -30,7 +30,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd April 12, 2007 +.Dd June 6, 2007 .Dt PROGRESS 1 .Os .Sh NAME @@ -39,6 +39,7 @@ .Sh SYNOPSIS .Nm .Op Fl ez +.Op Fl b Ar buffersize .Op Fl f Ar file .Op Fl l Ar length .Op Fl p Ar prefix @@ -65,6 +66,11 @@ simply displays a count of the data and the data rate. .Pp The options are as follows: .Bl -tag -width XlXlengthXX +.It Fl b Ar buffersize +Read in buffers of the specified size (default 64k). +An optional suffix (per +.Xr strsuftoll 3 ) +may be given. .It Fl e Display progress to standard error instead of standard output. .It Fl f Ar file -- cgit v1.2.3