ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Wish List (https://www.esoui.com/forums/forumdisplay.php?f=177)
-   -   [outdated] Omitting SavedVariables indentation white space (https://www.esoui.com/forums/showthread.php?t=8058)

Cardinal05 09/17/18 07:46 AM

[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! :banana:

AssemblerManiac 09/17/18 01:56 PM

Quote:

Originally Posted by Cardinal05 (Post 36045)
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! :banana:

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.


All times are GMT -6. The time now is 02:28 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI