View Single Post
05/20/20, 10:01 AM   #10
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,578
Talking about performance, would it be possible to allow addons to store raw strings as saved variables? For example instead of specifying "## SavedVariables: MyAddOn_SomeVar1 MyAddOn_SomeVar2" in the manifest an addon could instead use "## RawSavedVariables: MyAddOn_SomeVar1 MyAddOn_SomeVar2" and when the variable is a string, the game just dumps it into a file <addon name>_<varname>.dat as is. MyAddOn_SomeVar1 would for example be stored in MyAddOn_MyAddOn_SomeVar1.dat and on load the game just needs to load it back into a string without having to do any parsing and interpreting.
I imagine that would make loading screens a lot faster for data heavy addons that do not need everything in Lua tables right away.
  Reply With Quote