Skip to content

Conversation

@Unparalleled-Calvin
Copy link

Hi there! This PR modifies the generic_damerau_levenshtein implementation to:

  • Use borrowed elements (&Elem) as HashMap keys instead of owned values
  • Eliminate unnecessary .clone() calls
  • Allow broader use cases for types where cloning is expensive or impossible

Benefits:

  • Faster execution
  • Supports non-Clone element types
  • Reduces memory allocations

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.

1 participant