Replies: 1 comment 1 reply
-
Looks like the conversion to HashMap takes quite some time, because it hashes things, which is inherently expensive! It might be worth to:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The dictionary is quite large now, and I had to transform it into a HashMap upon reading from file for faster wordfinding. However, it's quite troublesome that every time I switch out of and into the IME again, the DLL reread it (it takes quite a few seconds for the IME to start working, which is not ideal). So I'm thinking of somehow store the HashMap dictionary to a separate file, and have the DLL read from it rather than from a human-readable file, using something like serde or bincode.
Is the idea okay? Do you have any suggestion on this?
Beta Was this translation helpful? Give feedback.
All reactions