stringdistance icon indicating copy to clipboard operation
stringdistance copied to clipboard

is thread-safe or not?

Open shlomishasho27 opened this issue 1 year ago • 3 comments

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

Thanks

shlomishasho27 avatar Jan 08 '24 16:01 shlomishasho27

@vickumar1981

shlomishasho27 avatar Jan 09 '24 10:01 shlomishasho27

@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 avatar Jan 10 '24 17:01 vickumar1981

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

vickumar1981 avatar Jan 20 '24 05:01 vickumar1981