HomeSoftware Heritage

cache: replace asizeof() call with simpler heuristic

Description

cache: replace asizeof() call with simpler heuristic

The asizeof() introduced a very heavy overhead which made swhfs unusable
when relying on many asizeof calls (eg: storing history exploration in
the direntry cache with a history containing >1000 commits).

The heuristic to calculate the size of a FuseEntry is based on
experimental results from repositories with various history sizes (10K,
100k, ...)

Details

Provenance
haltodeAuthored on Nov 6 2020, 3:53 PM
haltodePushed on Nov 13 2020, 4:06 PM
Differential Revision
D4416: fs: history: add by-hash/ sharded directory
Parents
rDFUSE2b1a725ad68d: fs: history: do not store history list in memory
Branches
Unknown
Tags
Unknown
References
tag: v0.0.4
Build Status
Buildable 17085
Build 26368: test-and-buildJenkins console · Jenkins