View Single Post
09/17/18, 07:46 AM   #1
Cardinal05
AddOn Author - Click to view addons
Join Date: Feb 2018
Posts: 33
[outdated] Omitting SavedVariables indentation white space

Would it be possible to omit indentation white space from the SavedVariables writer function?

Below are the statistics from the same SavedVariables file, the first being the default output and the second having the indenting white space removed from each line:

Current output:


Proposed output omitting white space:



While I do not know whether the game or LUA engine retains the LUA source code in memory after loading and parsing addons and saved variables...

At best, doing this would reduce the memory footprint of the LUA engine if it does retain the source in memory.

But even if the source is not retained in RAM, eliminating the white space from the SavedVariables files would, at the very least, confer a load time speed increase from the reduced amount of disk activity needed to both read and write this data to and from players' disks.

Thank you so much!