]> khamidou — GitHub mirrors - arcanist.git/commit
Use linear distance instead of square distance in levenshtein
authorEmil Hesslow <emil@fb.com>
Tue, 15 Nov 2011 18:43:36 +0000 (10:43 -0800)
committerEmil Hesslow <emil@fb.com>
Tue, 15 Nov 2011 21:48:26 +0000 (13:48 -0800)
commit5be54ec283d7df25c3ecbd3e621f235fba187775
tree29172667b5e6be9f7c20c18652fd967f550c06ea
parent16caf63d98f9b65b75a036dd45e1089f29a16da1
Use linear distance instead of square distance in levenshtein

Summary:
We used square distance that optimized for the wrong thing. Making the same
markers spread out instead of being together

Also added a very little cost for switching type. That will make diff types
stick together a bit more

Task ID: #623

Blame Rev:

Test Plan:
Ran my new unit test. And tested a few diff in phabricator

Revert Plan:

Tags:

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, epriestley
Differential Revision: 1112
src/__phutil_library_map__.php
src/difference/ArcanistDiffUtils.php
src/difference/__tests__/ArcanistDiffUtilsTestCase.php [new file with mode: 0644]
src/difference/__tests__/__init__.php [new file with mode: 0644]