Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Feb 2004 20:55:24 -0800 (PST)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern sys_pipe.c
Message-ID:  <200402030455.i134tO4I084227@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



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