This is an archive of the discontinued Mercurial Phabricator instance.

xdiff: move hashtable calculation to a separate function
AbandonedPublic

Authored by quark on Mar 3 2018, 9:51 PM.

Details

Reviewers
None
Group Reviewers
hg-reviewers
Summary

Before running the main diff algorithm, xdiff will "prepare" the contexts
for both files. That includes splitting, hashing all the lines, and building
hash tables for those lines. The hash table building process could be
expensive. Moving it out so it can be optimized separately.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped