MCPcopy Create free account
hub / github.com/git/git / estimate_cache_size_from_compressed

Function estimate_cache_size_from_compressed

read-cache.c:1956–1959  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1954}
1955
1956static size_t estimate_cache_size_from_compressed(unsigned int entries)
1957{
1958 return entries * (sizeof(struct cache_entry) + CACHE_ENTRY_PATH_LENGTH);
1959}
1960
1961static size_t estimate_cache_size(size_t ondisk_size, unsigned int entries)
1962{

Callers 2

load_all_cache_entriesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected