libfossil
fsl_acache Struct Reference

#include "fossil-internal.h"

Data Fields

fsl_id_bag available
 Cache of of known-existing content. More...
 
fsl_size_t capacity
 Number of slots in this->list. More...
 
fsl_id_bag inCache
 All artifacts currently in the cache. More...
 
fsl_acache_linelist
 List of cached content, ordered by age. More...
 
fsl_id_bag missing
 Cache of known-missing content. More...
 
fsl_int_t nextAge
 Next cache counter age. More...
 
fsl_int_t szTotal
 Total amount of memory used by cached content. More...
 
fsl_size_t used
 Number of entries "used" in this->list. More...
 

Detailed Description

A cache for tracking the existence of artifacts while the internal goings-on of control artifacts are going on.

Currently the artifact cache is unused because it costs much more than it gives us. Once the library supports certain operations (like rebuild and sync) caching will become more useful.

Historically fossil caches artifacts as their blob content, but libfossil will likely (at some point) to instead cache fsl_deck instances, which contain all of the same data in pre-parsed form. It cost more memory, though.

Definition at line 144 of file fossil-internal.h.

Field Documentation

fsl_id_bag fsl_acache::available

Cache of of known-existing content.

Definition at line 176 of file fossil-internal.h.

fsl_size_t fsl_acache::capacity

Number of slots in this->list.

Definition at line 156 of file fossil-internal.h.

fsl_id_bag fsl_acache::inCache

All artifacts currently in the cache.

Definition at line 168 of file fossil-internal.h.

fsl_acache_line* fsl_acache::list

List of cached content, ordered by age.

Definition at line 164 of file fossil-internal.h.

fsl_id_bag fsl_acache::missing

Cache of known-missing content.

Definition at line 172 of file fossil-internal.h.

fsl_int_t fsl_acache::nextAge

Next cache counter age.

Higher is newer.

Definition at line 160 of file fossil-internal.h.

fsl_int_t fsl_acache::szTotal

Total amount of memory used by cached content.

Definition at line 148 of file fossil-internal.h.

fsl_size_t fsl_acache::used

Number of entries "used" in this->list.

Definition at line 152 of file fossil-internal.h.


The documentation for this struct was generated from the following file: