cvs commit: src/sys/kern kern_descrip.c
Xin LI
delphij at FreeBSD.org
Thu Oct 6 12:23:03 PDT 2005
delphij 2005-10-06 19:23:02 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_6)
sys/kern kern_descrip.c
Log:
MFC 1.280 (by des):
| 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 stud.fit.vutbr.cz>
|
| Revision Changes Path
| 1.280 +3 -1 src/sys/kern/kern_descrip.c
Approved by: re
Revision Changes Path
1.279.2.1 +3 -1 src/sys/kern/kern_descrip.c
More information about the cvs-src
mailing list