HomePhabricator

dirstate-v2: Support appending to the same data file

Authored by SimonSapin.

Description

dirstate-v2: Support appending to the same data file

For now we’re still writing the entire data every time, so appending is not
useful yet. Later we’ll have new nodes pointing to some existing data for
nodes and paths that haven’t changed.

The decision whether to append is pseudo-random in order to make tests exercise
both code paths. This will be replaced by a heuristic based on the amount
of unused existing data.

Differential Revision: https://phab.mercurial-scm.org/D11094

Details

Committed
SimonSapinJul 13 2021, 11:18 AM
Differential Revision
D11094: dirstate-v2: Support appending to the same data file
Parents
rHGda1c0cd68d53: dirstate-v2: shrink on-disk path lengths to 16-bits
Branches
Unknown
Tags
Unknown