Page MenuHomePhabricator

dirstate: restore original estimation and update comment
ClosedPublic

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

Details

Summary

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

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

Event Timeline

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