Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Oct 2003 13:34:43 -0700 (PDT)
From:      Diomidis Spinellis <dds@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/bin/echo echo.c
Message-ID:  <200310112034.h9BKYhUg040071@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
dds         2003/10/11 13:34:43 PDT

  FreeBSD src repository

  Modified files:
    bin/echo             echo.c 
  Log:
  - Check and report write(2) errors.
  
  - Issue a single writev(2) call instead of multiple write(2)s.
    This change improves the inefficiencies introduced when echo
    went on an stdio diet.
  
  The following figures are for echoing 1000 arguments.
  original stdio-based echo:
          0.01 real         0.01 user         0.00 sys
  before:
          0.05 real         0.00 user         0.04 sys
  after:
          0.01 real         0.00 user         0.00 sys
  
  Revision  Changes    Path
  1.16      +59 -10    src/bin/echo/echo.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200310112034.h9BKYhUg040071>