This is an archive of the discontinued Mercurial Phabricator instance.

rebase: optimize "source" calculation in adjustdest
ClosedPublic

Authored by quark on Aug 11 2017, 5:01 AM.

Details

Summary

The "source" variable is calculated inside a loop but it does not depend on
loop variables. Therefore move it outside the loop.

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

quark created this revision.Aug 11 2017, 5:01 AM
martinvonz accepted this revision.Aug 16 2017, 1:57 AM
This revision is now accepted and ready to land.Aug 16 2017, 1:57 AM
This revision was automatically updated to reflect the committed changes.