Page MenuHomePhabricator

dirstate: restore original estimation and update comment

Authored by joerg.sonnenberger on Jul 30 2020, 10:13 AM.



The former comment didn't reflect the content of the dirstate entries,
the two nodes are a fixed header in the file and not per-entry. Split
the documented entry into the path part and the fixed header. The
heuristic itself is still valid, e.g. for the NetBSD src tree a maximum
path size of 142 and an average of 49, resulting in 66 bytes per entry
on average.

Diff Detail

rHG Mercurial
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Alphare accepted this revision.Jul 30 2020, 10:57 AM
pulkit accepted this revision.Jul 31 2020, 7:40 AM
This revision is now accepted and ready to land.Jul 31 2020, 7:40 AM