Thread Tools Display Modes
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!
 
09/17/18, 01:56 PM   #2
AssemblerManiac
AddOn Author - Click to view addons
Join Date: Jun 2014
Posts: 51
Originally Posted by Cardinal05 View Post
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!
It should also reduce the actual parse time too. Skipping 60M of white space while parsing out the incoming data would be a significant improvement.
 

ESOUI » Developer Discussions » Wish List » [outdated] Omitting SavedVariables indentation white space

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off