Page MenuHomePhabricator

In prose diffs, use hash-and-diff for coarse "level 0" diffing to scale better
ClosedPublic

Authored by epriestley on Sep 25 2019, 10:12 PM.
Tags
None
Referenced Files
F18336251: D20839.id49680.diff
Mon, Aug 25, 10:26 AM
F18336250: D20839.id49670.diff
Mon, Aug 25, 10:26 AM
F18336247: D20839.diff
Mon, Aug 25, 10:25 AM
F18100743: D20839.diff
Sat, Aug 9, 12:03 PM
F18081445: D20839.id49680.diff
Tue, Aug 5, 12:17 AM
F18078460: D20839.diff
Mon, Aug 4, 8:09 PM
F17951859: D20839.id49680.diff
Fri, Aug 1, 1:47 AM
F17940540: D20839.id.diff
Thu, Jul 31, 4:31 AM
Subscribers
None

Details

Summary

Depends on D20838. Fixes T13414. Instead of doing coarse diffing with "PhutilEditDistanceMatrix", use hash-and-diff with "DocumentEngine".

Test Plan
  • On a large document (~3K top level blocks), saw a more sensible diff, instead of the whole thing falling back to "everything changed" mode.
  • On a small document, still saw a sensible granular diff.

Screen Shot 2019-09-25 at 2.55.12 PM.png (699×849 px, 190 KB)

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Sep 25 2019, 11:50 PM
This revision was automatically updated to reflect the committed changes.