I am trying to make a word game in Flash/as3. Here I am using Prefix tree (Trie) data structure to store all the valid English words and then iterate through them whenever the user makes a new word.
My problem is that the build process of Trie is very slow (as there are more than 3,00,000 words in the dictionary) and so compiling it every time the user starts the game does not look like a nice idea to me.
Is there a way I could compile the code just once and store the compiled code and use it later on. Maybe in a .swc file or a .exe file or anything.
I also would like to know correct technical term for the above question. Don't require flash specific solutions. Just tell me the idea behind what needs to be done in any language.
Thanks a lot people :)