This is an archive of the discontinued Mercurial Phabricator instance.

perf: teach perfbdiff to call blocks() and to use xdiff
ClosedPublic

Authored by indygreg on Mar 3 2018, 6:56 PM.

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

indygreg created this revision.Mar 3 2018, 6:56 PM
quark accepted this revision.Mar 3 2018, 8:54 PM
quark added inline comments.Mar 4 2018, 11:45 PM
contrib/perf.py
1024–1030

Might move the assignment out of the loop:

              if xdiff:
                  f = mdiff.bdiff.xdiffblocks
              elif blocks:
                  f = mdiff.bdiff.blocks
              else:
                  f = mdiff.textdiff
def d():
   ...
   f(*pairs)
durin42 accepted this revision.Mar 7 2018, 10:48 AM
This revision is now accepted and ready to land.Mar 7 2018, 10:48 AM
This revision was automatically updated to reflect the committed changes.