Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is the DamerauLevenshtein impl goroutine safe ? #4

Open
letronje opened this issue Apr 14, 2020 · 1 comment
Open

Is the DamerauLevenshtein impl goroutine safe ? #4

letronje opened this issue Apr 14, 2020 · 1 comment

Comments

@letronje
Copy link

Given that the buffer buffer [][]int is shared and mutated in Calculate(), if multiple go routines use the same instance of DamerauLevenshtein and call Calculate on same instance, won't that create problems ?

@ip75
Copy link

ip75 commented Nov 19, 2024

Definitely no. Look at the damerau_levenshtein.go

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

No branches or pull requests

2 participants