summaryrefslogtreecommitdiffstats
path: root/sys/fs
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2003-06-13 08:46:13 +0000
committerdes <des@FreeBSD.org>2003-06-13 08:46:13 +0000
commit6e6f4e827010564489106d68fd31745b8712f0d0 (patch)
tree3f6649d53512b1cc1a17ed2738e5f2f4b06d09ea /sys/fs
parent5549e4aa25257f6db8b251ef3d1501d0aa7052f7 (diff)
downloadFreeBSD-src-6e6f4e827010564489106d68fd31745b8712f0d0.zip
FreeBSD-src-6e6f4e827010564489106d68fd31745b8712f0d0.tar.gz
Make the VFS cache use zones instead of malloc(9). This results in a
small but noticeable increase in performance for name lookup operations. The code uses two zones, one for short names (less than 32 characters) and one for long names (up to NAME_MAX). Since most file names are fairly short, this saves a considerable amount of space that would otherwise be wasted if we always allocated NAME_MAX bytes. The cutoff value of 32 characters was picked arbitrarily and may benefit from some tweaking; it could also be made into a tunable. Submitted by: hmp
Diffstat (limited to 'sys/fs')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud