ADR-0032 — The base cache stays at 64 MiB
- Status: Accepted
- Date: 2026-11-14
- Supersedes: none
- Authors: project maintainers
Context
The saver keeps recent full copies in memory to patch against, bounded by base_cache_bytes
(write rule 2 in architecture.md §4). A larger bound lets more
large values find their base in memory.
Decision
The default bound stays 64 MiB (DEFAULT_BASE_CACHE_BYTES).
Alternatives considered
- A larger default — rejected. On a value growing 10 MB a step, a larger bound added patches
only until the value passed about 128 MB, where zstd's window ends patching, saving 124 MB of
1,680 MB for 414 MB more peak RSS; on a fleet of 1–3 MB values it cost 43–101 MB of RSS for no
disk or speed gain (
measuredbefore public release; core-set-results.md, benchmarks 1 and 5).
Consequences
- An application with very large values can raise
base_cache_bytes; the default favours memory.