diff options
author | des <des@FreeBSD.org> | 2005-08-26 11:16:39 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2005-08-26 11:16:39 +0000 |
commit | 6222a26a3b2248379acb5ba8ed9923029ccd8a9a (patch) | |
tree | 682e5a10d186fecfd6eac02e49889e99d69cafe8 /sys/netipx/spx_var.h | |
parent | 7c5f6cabc9239f2525eb117021754427d7f1d202 (diff) | |
download | FreeBSD-src-6222a26a3b2248379acb5ba8ed9923029ccd8a9a.zip FreeBSD-src-6222a26a3b2248379acb5ba8ed9923029ccd8a9a.tar.gz |
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
Diffstat (limited to 'sys/netipx/spx_var.h')
0 files changed, 0 insertions, 0 deletions