Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix blob cache race, decay, time dependency
This commit addresses 3 problems in the blob cache: * Fix a race during initChunk where the result would be a fallback to direct read. * Fix a bug in computeDecay that led to only decaying the first item per frequency. * Remove the time dependency of the cache by moving to a logical clock (epochs) Trigger decay whenever freq0 is empty, ensuring we decay slowly/rapidly as needed. Divide time into epochs, switch to new one whenever we need to decay. A region now promotes 2 freqs per access but only once per epoch Co-authored-by: Tanguy Leroux <tlrx.dev@gmail.com>
- Loading branch information