This is an archive of the discontinued Mercurial Phabricator instance.

hiddenoverride: do not resolve obsoleted revisions during startup
ClosedPublic

Authored by quark on Sep 23 2017, 5:51 PM.
Tags
None
Subscribers
None

Details

Summary

Resolving obsoleted revisions (repo.revs('obsolete()')) is slow. Let's
move that filtering logic from read code path to write code path. So it does
not get executed for every command.

Test Plan

hg bookmark --hidden --profile. Make sure obsstore loading logic
disappears from the profiling output.

Diff Detail

Repository
rFBHGX Facebook Mercurial Extensions
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

quark created this revision.Sep 23 2017, 5:51 PM
Herald added a reviewer: Restricted Project. · View Herald TranscriptSep 23 2017, 5:51 PM
quark updated this revision to Diff 2056.Sep 23 2017, 8:28 PM
durham accepted this revision.Sep 26 2017, 7:48 AM
This revision is now accepted and ready to land.Sep 26 2017, 7:48 AM
This revision was automatically updated to reflect the committed changes.