Skip to content

ADR-0031 — A floor below which values are never patched

  • Status: Accepted
  • Date: 2026-11-14
  • Supersedes: none
  • Authors: project maintainers

Context

For a small value, a patch plus its side row costs more than the value itself. Benchmark 9 of the core set measured small-value workloads at 1.03–1.31× upstream's value bytes with patches, against 0.79–1.02× with a floor under which values are stored as compressed full copies (measured before public release; core-set-results.md, benchmark 9).

Decision

Values under MIN_PATCH_BYTES (1024) will be stored as compressed full copies, never as patches. The compression threshold MIN_COMPRESS_BYTES (256) stays.

Alternatives considered

  • Patch everything above the compression threshold — rejected on the measurement above.

Consequences

  • Small channels never form patch chains, so their reads never resolve a patch.
  • Both thresholds are constants, not settings.

References