cvs commit: src/sys/kern kern_descrip.c
des at FreeBSD.org
Fri Aug 26 11:16:40 GMT 2005
des 2005-08-26 11:16:40 UTC
FreeBSD src repository
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
This change results in a small but measurable speedup for processes
with large numbers (several thousands) of open files.
Submitted by: Divacky Roman <xdivac02 at stud.fit.vutbr.cz>
MFC after: 3 weeks
Revision Changes Path
1.280 +3 -1 src/sys/kern/kern_descrip.c
More information about the cvs-src