I'm developing a data field where I need multiple string settings (proporties), and where I'm also running out of memory.
I noticed that adding more string settings sometimes cause a "jump" in memory allocated. Which puzzled me, so I looked more into this.
Here is an example XML file with settings demostrating this. Here I have added comments on how much each of the many bottom string proporties adds of memory allocation (I added them one-by-one, ran it in simulator, and used System.println(System.getSystemStats().freeMemory) to see the diff in added memory):
As shown, every 16th extra string user setting cause a rather significant extra memory allocation.
Why? A bug in simulator?