You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, loading a LanguageDetector's language models is relatively slow because it is done sequentially. Kotlin's coroutines should be the proper means to speed up this process.
The text was updated successfully, but these errors were encountered:
pemistahl
changed the title
Use parallel streams to speed up ngram probability lookup
Use async coroutines to speed up ngram probability lookup
Feb 15, 2021
The commit 03c9b62 fixing this might have introduced a thread-safety issue. Reassigning a local variable (here filteredLanguages) concurrently from different threads is not safe, see this StackOverflow answer.
Currently, loading a
LanguageDetector
's language models is relatively slow because it is done sequentially. Kotlin's coroutines should be the proper means to speed up this process.The text was updated successfully, but these errors were encountered: