Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Aug 2005 11:16:40 +0000 (UTC)
From:      Dag-Erling Smorgrav <des@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern kern_descrip.c
Message-ID:  <200508261116.j7QBGeVg039368@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
des         2005-08-26 11:16:40 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             kern_descrip.c 
  Log:
  Two minor optimizations of fdalloc():
  
   - if minfd < fd_freefile (as is most often the case, since minfd is
     usually 0), set it to fd_freefile.
  
   - remove a call to fd_first_free() which duplicates work already done
     by fdused().
  
  This change results in a small but measurable speedup for processes
  with large numbers (several thousands) of open files.
  
  PR:             kern/85176
  Submitted by:   Divacky Roman <xdivac02@stud.fit.vutbr.cz>
  MFC after:      3 weeks
  
  Revision  Changes    Path
  1.280     +3 -1      src/sys/kern/kern_descrip.c



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