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 thread-safe or not? #72

Open
shlomishasho27 opened this issue Jan 8, 2024 · 3 comments
Open

is thread-safe or not? #72

shlomishasho27 opened this issue Jan 8, 2024 · 3 comments

Comments

@shlomishasho27
Copy link

shlomishasho27 commented Jan 8, 2024

Hey, I just want to confirm - is the library thread-safe or not?

Thanks

@shlomishasho27
Copy link
Author

@vickumar1981

@vickumar1981
Copy link
Owner

@shlomishasho27 though i haven't really tested, i believe it should be thread-safe, b/c the functions don't rely on mutation of the inputs. i.e., it should be ok to call the distance and scoring methods from different threads - i don't see a use case where this would cause a problem.

thanks.

@vickumar1981
Copy link
Owner

@shlomishasho27 were you able to run the distance and score functions in separate threads?

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