cvs commit: src/sys/kern kern_descrip.c

Dag-Erling Smorgrav des at
Fri Aug 26 11:16:40 GMT 2005

des         2005-08-26 11:16:40 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             kern_descrip.c 
  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 at>
  MFC after:      3 weeks
  Revision  Changes    Path
  1.280     +3 -1      src/sys/kern/kern_descrip.c

More information about the cvs-src mailing list