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
I was looking at the Nodehun binding code and noticed that in Nodehun::SpellDictionary::checkSuggestions() it sets a lock on the dictionary - before it looks up the word.
In my case, I'm only using the dictionary as read-only, it never changes. So if the dictionary never changes, technically, we don't need a lock on the dictionary and theoretically improving performance.
What I was thinking was that I could provide an option to make the dictionary read-only when you create the dictionary object and then you can just put an if-statement around the locks.
Thoughts?
Jason
The text was updated successfully, but these errors were encountered:
I was looking at the Nodehun binding code and noticed that in Nodehun::SpellDictionary::checkSuggestions() it sets a lock on the dictionary - before it looks up the word.
In my case, I'm only using the dictionary as read-only, it never changes. So if the dictionary never changes, technically, we don't need a lock on the dictionary and theoretically improving performance.
What I was thinking was that I could provide an option to make the dictionary read-only when you create the dictionary object and then you can just put an if-statement around the locks.
Thoughts?
Jason
The text was updated successfully, but these errors were encountered: