From waddlesplash <waddlesplash@xxxxxxxxx>:
waddlesplash has uploaded this change for review. (
https://review.haiku-os.org/c/haiku/+/1568
Change subject: packagefs: Use object caches for the most used node clases.
......................................................................
packagefs: Use object caches for the most used node clases.
slab statistics from KDL show that on a stock nightly image
(i.e. no additional packages besides the standards installed)
there are 43848 *objects* (not bytes) in the PackageNodeAttribute
cache, and 25090 in the PackageFile cache, so this seems more than
worth it.
---
M src/add-ons/kernel/file_systems/packagefs/package/Package.cpp
M src/add-ons/kernel/file_systems/packagefs/package/PackageFile.cpp
M src/add-ons/kernel/file_systems/packagefs/package/PackageFile.h
M src/add-ons/kernel/file_systems/packagefs/package/PackageNodeAttribute.cpp
M src/add-ons/kernel/file_systems/packagefs/package/PackageNodeAttribute.h
A src/add-ons/kernel/file_systems/packagefs/util/ClassCache.h
6 files changed, 55 insertions(+), 2 deletions(-)
git pull ssh://git.haiku-os.org:22/haiku refs/changes/68/1568/1
--
To view, visit https://review.haiku-os.org/c/haiku/+/1568
To unsubscribe, or for help writing mail filters, visit
https://review.haiku-os.org/settings
Gerrit-Project: haiku
Gerrit-Branch: master
Gerrit-Change-Id: I676a642ed6003f82b14396e1f02684575d899362
Gerrit-Change-Number: 1568
Gerrit-PatchSet: 1
Gerrit-Owner: waddlesplash <waddlesplash@xxxxxxxxx>
Gerrit-MessageType: newchange