Usable memory #1632
Replies: 2 comments
-
Posted at 2023-01-06 by @gfwilliams There's the Bluetooth stack that uses 10k of RAM, but also we need to have a certain amount of free RAM (~10kb) for the execution stack. Newer builds have So 10k execution + 10k bluetooth + 34k vars leaves 10k for the rest of the interpreter, Tensorflow, etc. It does seem a bit high, but it's not that bad. There's a script called
I skipped out anything under 64 bytes. If I add those I get On the whole the |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-01-06 by !evil I agree, 7.6k is not bad. And considering bluetooth a vital part, there isn't much room for improvement except for stack size. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2022-12-31 by !evil
Hi,
I wonder why the amount of usable memory is relatively small. Bangle.js 1 has 2584 blocks with 13 bytes each, in total 33.592 kB. This means the runtime requires ~30kB. From https://www.espruino.com/Performance:
Obviously there is lots of code for Bangle.js in
libs/banglejs/
and I guess elsewhere too, but it would be interesting to know what is taking up that space.related: https://forum.espruino.com/conversations/372543/
Beta Was this translation helpful? Give feedback.
All reactions