This is an archive of the discontinued Mercurial Phabricator instance.

perftweaks: access inner map for dirstate types other than treedirstate
ClosedPublic

Authored by mbthomas on Nov 28 2017, 10:43 AM.
Tags
None
Subscribers
None

Details

Summary

D1410 added support for treedirstate when collecting dirstate_size for
sampling. However, it also changed from querying the inner dirstate map (which
is not available with treedirstate) to the outer map. This breaks Eden, which
prevents calls to __len__ on the outer map.

Revert the change for non-treedirstate dirstates, and handle treedirstate
explicitly.

Diff Detail

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

Event Timeline

mbthomas created this revision.Nov 28 2017, 10:43 AM
Herald added a reviewer: Restricted Project. · View Herald TranscriptNov 28 2017, 10:43 AM
simonfar accepted this revision.Nov 28 2017, 12:05 PM
This revision is now accepted and ready to land.Nov 28 2017, 12:05 PM
This revision was automatically updated to reflect the committed changes.