Skip to content

Conversation

@berendkleinhaneveld
Copy link
Collaborator

@berendkleinhaneveld berendkleinhaneveld commented Nov 19, 2025

  • Implement iterative Levenshtein distance.
  • Apply padding in one loop.

This makes it possible to have diffs of lists of over 200 elements, which it can't handle now because of recursion error.

Related issue: #7

Note: this is another collab between Claude Code and me. The iterative Levenshtein part went pretty well, but the padding part needed some more guidance.

@Korijn
Copy link
Collaborator

Korijn commented Nov 19, 2025

Can you add the benchmark first in a separate PR?

@berendkleinhaneveld
Copy link
Collaborator Author

berendkleinhaneveld commented Nov 19, 2025

Can you add the benchmark first in a separate PR?

Yes, but most of the benchmark is failing on the current master branch :/ You think that's ok?

@Korijn
Copy link
Collaborator

Korijn commented Nov 19, 2025

Can you add the benchmark first in a separate PR?

Yes, but most of the benchmark is failing on the current master branch :/ You think that's ok?

Nevermind then...

@berendkleinhaneveld berendkleinhaneveld changed the title Iterative Levenshtein distance and benchmarks Iterative Levenshtein distance Nov 19, 2025
@berendkleinhaneveld
Copy link
Collaborator Author

berendkleinhaneveld commented Nov 19, 2025

What's missing now is a test in the default test suite to make sure no RecursiveError will be re-introduced.

Edit: hmmm, the benchmark for PRs will then fail... so I guess it's in place already :)

@berendkleinhaneveld berendkleinhaneveld merged commit 3fbeeac into master Nov 19, 2025
10 checks passed
@berendkleinhaneveld berendkleinhaneveld deleted the iterative-levenshtein-distance branch November 19, 2025 12:24
berendkleinhaneveld added a commit that referenced this pull request Nov 19, 2025
* Iterative Levenshtein distance (can handle larger diffs now) (Iterative Levenshtein distance #21)
* Add benchmark and workflow (Add benchmark and workflow (based on observ's) #22)
@Korijn Korijn mentioned this pull request Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants