Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-1234

getLevenshteinDistance with a threshold: optimize implementation if the strings lengths differ more than the threshold

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.4
    • Fix Version/s: 3.5
    • Component/s: lang.*
    • Labels:
      None

      Description

      If the string lengths differ more than the threshold, there's no need for the algorithm to begin allocating arrays etc.

      Pull request: https://github.com/apache/commons-lang/pull/118

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pascalschumacher Pascal Schumacher
                Reporter:
                pascalschumacher Pascal Schumacher
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: