A theory I tested recently - would consolidating all inis into a single, massive ini allow for faster loading?
The answer is yes. Definitely.
I tested this by shoving everything loaded in "Base.rte/Index.ini" and everything that was loaded using "IncludeFile" into a single ini (in correct load order) and got roughly 2-2.5 second (measured with a stopwatch :/ ) decrease in loading time.
I run Win7 x64 on i5-6600k @ 3.5GHz, 16Gb 2.4Ghz RAM on an H170 chipset motherboard.
Loading speed gains may vary depending on hardware.
The speed increase is gained by minimizing scan/read operations CC has to do while loading.
If you have a mod that has a large amount of ini files, consolidating them into a single ini once you're done with it and plan to release will speed up the loading for you and whoever downloads your mod.
Depending on the amount of inis and the amount of lines gains may not be much, but every millisecond counts.
All your original inis can be kept in their places without interference.
The consolidated ini is standalone. All you need to do it uncomment everything in Index.ini and include it, like so:
Code:
DataModule
ModuleName = Base Set
// IncludeFile = Base.rte/Materials.ini
// IncludeFile = Base.rte/Icons.ini
// IncludeFile = Base.rte/Sounds.ini
// IncludeFile = Base.rte/Effects.ini
// IncludeFile = Base.rte/Ammo.ini
// IncludeFile = Base.rte/Devices.ini
// IncludeFile = Base.rte/Actors.ini
// IncludeFile = Base.rte/Loadouts.ini
// IncludeFile = Base.rte/Deployments.ini
// IncludeFile = Base.rte/Scenes.ini
// IncludeFile = Base.rte/Activities.ini
// IncludeFile = Base.rte/GlobalScripts.ini
IncludeFile = Base.rte/BASE.ini
This base doesn't have any changes made except placeable crabs in build mode.
All uncommented code was removed to (very slightly) speed things up even more.
96542 lines, 2.07Mb
A tool to simplify this process to a few clicks is being worked on because doing this manually can be pretty tedious.
I'll update this thread once it's available.