wiki.techinc.nl/includes/diff
Max Semenik dd57ff3cce Rethink diff limits
Now, instead of "if your changed paragraphs are larger than 10Kb, you're
screwed":
* Instead of relying on overall length, estimate complexity after splitting to words
  and taking any equal head and tail out of equation.
* Estimate based on words changed, which better reflects the actual complexity
  of generating a diff.
* New limit is determined scientifically, i.e. "above that number XDebug starts
  complaining about recursion limits reached in Vagrant".

Caveat: if new limits are hit, the consequences are more widespread as all adjacent
changed paragraphs are displayed without word level diffs, as opposed to only the
paragraph that's too long being affected. However, the new limit is much higher and
in wikitext you're supposed to put empty lines between paragraphs anyway, negating
this problem.

Bug: T128697
Change-Id: I4e91c7c40f5afdd116b847a859b8517522302489
2016-06-01 16:30:58 -07:00
..
ArrayDiffFormatter.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
ComplexityException.php Rethink diff limits 2016-06-01 16:30:58 -07:00
DairikiDiff.php Rethink diff limits 2016-06-01 16:30:58 -07:00
DiffEngine.php Rethink diff limits 2016-06-01 16:30:58 -07:00
DifferenceEngine.php Fix various phpcs error from last security patches 2016-05-20 20:20:36 +02:00
DiffFormatter.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
TableDiffFormatter.php TableDiffFormatter: Don't repeatedly call array_shift() 2016-03-09 04:09:07 -05:00
UnifiedDiffFormatter.php DiffFormatter: Don't mess with PHP output buffering 2016-01-27 19:31:17 -05:00
WordAccumulator.php Refactor diffs 2016-05-17 18:17:05 -07:00
WordLevelDiff.php Rethink diff limits 2016-06-01 16:30:58 -07:00