HomeSoftware Heritage

cache: replace asizeof() call with simpler heuristic

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

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
Build Status
Buildable 17085
Build 26368: test-and-buildJenkins console · Jenkins

Commit No Longer Exists

This commit no longer exists in the repository.