Skip to content

Commit

Permalink
LUCENE-3662: add note
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1224823 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
rmuir committed Dec 26, 2011
1 parent f1379de commit 318e3cb
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ public float getDistance(String target, String other) {
IntsRef otherPoints;
int n;
int d[][]; // cost array

// NOTE: if we cared, we could 3*m space instead of m*n space, similar to
// what LevenshteinDistance does, except cycling thru a ring of three
// horizontal cost arrays... but this comparator is never actually used by
// DirectSpellChecker, its only used for merging results from multiple shards
// in "distributed spellcheck", and its inefficient in other ways too...

// cheaper to do this up front once
targetPoints = toIntsRef(target);
Expand Down

0 comments on commit 318e3cb

Please sign in to comment.