View Single Post
11-10-12, 04:04 PM   #4
Nimhfree
A Frostmaul Preserver
AddOn Author - Click to view addons
Join Date: Aug 2006
Posts: 267
You could take your entire "dictionary" of words (names of quests of NPCs in this case) and compress them using whatever compression technique you want. You would then uncompress them in the running Lua code. Whether you choose to keep them compressed in memory and uncompress them on the fly, or uncompress them in memory depends on what tradeoffs you want to do -- time vs space. Personally, I do not compress any of the quest names nor NPC names that I use in my addons, but I have not made a study as to how much space I can save if I did nor how much overhead the uncompression takes. Also, being able to search through the names may be more difficult were they kept compressed in memory.
  Reply With Quote