Great, thanks! I'll also have a look at other saving options. The RT core size is just 1308 bytes, already including 512 bytes for metrics pointers. So names seem to count. Btw: the bluetooth stack eats up 64K of RAM when compiled in… https://www.esp32.com/viewtopic.php?t=3139 Regards, Michael Am 30.10.2017 um 03:38 schrieb Mark Webb-Johnson:
So, a reasonable saving of 10KB.
I tried with memory and task debugging turned off, and we get m.freeram 118888/98200 going to 121884/104932.
With the optimised OvmsMetrics code, RT seems to be allocating memory as follows:
Free 8-bit 85812/246632, 32-bit 18576/43548, numafter = 1000 task=Asy total= 0 20616 24972 change= +0 +20616 +0
-- Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal Fon 02333 / 833 5735 * Handy 0176 / 206 989 26