Just some FYI performance analyses:
I just disabled the App and Device OnInit’s, and removed all (couple of hundredths) possible capabilities.
Installing DC (not debug mode) starts off with 16.2MB memory.
Then i placed the capabilities back and installed: 16.2-16.4MB Memory, not much difference.
I added 10 more custom icons to the capabilities: 16.3MB.
Now i added the 10 new custom icons to the settings for all fields, makes the app.json jump from 24574 to 26974 lines: 15.7MB.
(dont know why)
Lets try adding 10 more custom icons in the capabilities and settings: 15.43MB…
Funny, should we add millions?
Now we turn the App OnInit Back on: we jump to 22MB.
And now the Device OnInit (only have one devicetype (Virtual Device) and have 4 off them): 22.1MB.
So we can can conclude it is not the size of the app.json (capabilities and longs settings) that increases memory
Great, i have currently added to a total of 40 custom icons!
The memory is probably used by the athom-api, but i will look into it more after translation is done.
After changing some virtual devices and there properties, memory goes from 22 to 21 to 21.6mb. Holding steady.
After loading all possible capabilities active in the memory, by selecting all options and icons, my memory goes up to 25MB.
Not to bad i.m.h.o., allthough i will look into the app oninit and the 6 MB it cost. But i do have watchers for the flowcards.