cvs commit: src/sys/kern sys_pipe.c

Robert Watson rwatson at FreeBSD.org
Mon Feb 2 20:55:26 PST 2004


rwatson     2004/02/02 20:55:24 PST

  FreeBSD src repository

  Modified files:
    sys/kern             sys_pipe.c 
  Log:
  Don't dec/inc the amountpipes counter every time we resize a pipe --
  instead, just dec/inc in the ctor/dtor.  For now, increment/decrement
  in two's, since we're now performing the operation once per pair,
  not once per pipe.  Not really any measurable performance change
  in my micro-benchmarks, but doing less work is good, especially when
  it comes to atomic operations.
  
  Suggested by:   alc
  
  Revision  Changes    Path
  1.167     +3 -2      src/sys/kern/sys_pipe.c


More information about the cvs-src mailing list