This is an archive of the discontinued Mercurial Phabricator instance.

undo: performance improvement attempt
ClosedPublic

Authored by felixmerk on Aug 17 2017, 6:41 PM.
Tags
None
Subscribers

Details

Reviewers
quark
Group Reviewers
Restricted Project
Commits
rFBHGXf547c4194f2e: undo: performance improvement attempt
Summary

Undo -p is really slow on certain large repos. This caches 'olddraft()' by
using the revlog nodes. Since revlogs are immutable this should be really safe
and could hopefully dramatically improve not only hg undo -p performance, but
performance of all undo commands.

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

felixmerk created this revision.Aug 17 2017, 6:41 PM
Herald added a reviewer: Restricted Project. · View Herald TranscriptAug 17 2017, 6:41 PM
quark accepted this revision.Aug 17 2017, 7:31 PM
quark added a subscriber: quark.

Let's try it!

This revision is now accepted and ready to land.Aug 17 2017, 7:31 PM
This revision was automatically updated to reflect the committed changes.