[ https://issues.apache.org/jira/browse/TEXT-188?focusedWorklogId=494744&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-494744 ]
ASF GitHub Bot logged work on TEXT-188: --------------------------------------- Author: ASF GitHub Bot Created on: 04/Oct/20 12:31 Start Date: 04/Oct/20 12:31 Worklog Time Spent: 10m Work Description: coveralls edited a comment on pull request #174: URL: https://github.com/apache/commons-text/pull/174#issuecomment-702642192 [![Coverage Status](https://coveralls.io/builds/33913495/badge)](https://coveralls.io/builds/33913495) Coverage increased (+0.001%) to 98.672% when pulling **381b800055c1710490c8b1107c7cfd1d75dbc646 on vesterstroem:TEXT-188** into **58b1cdc9d7059e6a932b907032fcb677d5302c3a on apache:master**. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 494744) Time Spent: 1h (was: 50m) > Speed up LevenshteinDistance with threshold > ------------------------------------------- > > Key: TEXT-188 > URL: https://issues.apache.org/jira/browse/TEXT-188 > Project: Commons Text > Issue Type: Improvement > Affects Versions: 1.9.1 > Reporter: Jakob Vesterstrøm > Priority: Major > Attachments: improvement.patch > > Time Spent: 1h > Remaining Estimate: 0h > > The calculation made by the LevenshteinDistance class can often be made > faster, when the class in initialized with a threshold, and when the distance > is found to be larger than the threshold. In those cases, it is often not > necessary to iterate through the whole string, since a lower bound for the > result can be established after each iteration. If that lower bound is larger > than the threshold, the method can simply exit early with the same result as > without this improvement. > A patch with the proposed change is attached to this issue. -- This message was sent by Atlassian Jira (v8.3.4#803005)