You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by jo...@apache.org on 2013/02/04 22:27:05 UTC
[11/16] git commit: [#5738] Use real_quick_ratio instead of ratio for
performance
[#5738] Use real_quick_ratio instead of ratio for performance
Signed-off-by: Cory Johns <jo...@geek.net>
Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/813917b5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/813917b5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/813917b5
Branch: refs/heads/cj/5705
Commit: 813917b53cfc99fa5394c31059f921c8b5dc44d4
Parents: 7712b0c
Author: Cory Johns <jo...@geek.net>
Authored: Mon Feb 4 17:40:58 2013 +0000
Committer: Cory Johns <jo...@geek.net>
Committed: Mon Feb 4 17:40:58 2013 +0000
----------------------------------------------------------------------
Allura/allura/model/repo.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/813917b5/Allura/allura/model/repo.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/repo.py b/Allura/allura/model/repo.py
index b46f3fa..b601de7 100644
--- a/Allura/allura/model/repo.py
+++ b/Allura/allura/model/repo.py
@@ -260,7 +260,7 @@ class Commit(RepoObject):
continue
diff = SequenceMatcher(None, removed_blob.text,
added_blob.text)
- ratio = diff.ratio()
+ ratio = diff.real_quick_ratio()
if ratio > best['ratio']:
best['ratio'] = ratio
best['name'] = added_name