Skip to content
Snippets Groups Projects
Commit 320de901 authored by Simon Sapin's avatar Simon Sapin
Browse files

dirstate-v2: Truncate directory mtimes to 31 bits of seconds

… instead of 64 bits, while keeping the sub-second presision.
This brings the size of one timestamp from 12 bytes to 8 bytes.

31 bits is chosen instead of 32 because that’s already what happens for the
mtime of files and symlinks, because dirstate-v1 uses negative i32 values as
markers.

Later we’ll add sub-second precision for file/symlink mtimes, making their
dirstate-v2 representation the same as for directories.

Differential Revision: https://phab.mercurial-scm.org/D11633
parent d2f760c2
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment