Don't search for intra-line diffs in really long lines
authoraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 10 Mar 2011 20:22:53 +0000 (20:22 +0000)
committeraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 10 Mar 2011 20:22:53 +0000 (20:22 +0000)
commit14c7edcf0effac2f3242585cec47adcc3755a338
treee486d0db71f4b1d9c9eca7eb678e16547819b524
parent736f6d7228601e25dff827696e893451a3532840
Don't search for intra-line diffs in really long lines

Doing so can lead to hangs (or at least really slow execution).

Fixes <http://webkit.org/b/56109> run-webkit-tests sometimes times out on Windows XP Debug
(Tests) after fast/text/large-text-composed-char-dos.html fails (due to PrettyPatch
hanging?)

Reviewed by David Kilzer.

* PrettyPatch/PrettyPatch.rb:
(PrettyPatch.MAXIMUM_INTRALINE_DIFF_LINE_LENGTH): Added this new constant.
(PrettyPatch.DiffSection.initialize): Don't bother looking for intra-line diffs in lines
longer than the maximum length.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@80741 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Websites/bugs.webkit.org/ChangeLog
Websites/bugs.webkit.org/PrettyPatch/PrettyPatch.rb