• Here is an example that creates a 1000 long file, read-s it, and free memory doesn't decrease by a lot (CPU is bare nRF52832, same as in the Bangle)

    So you didn't use Bangle when trying this? There may be another issue that Bangle uses external SPI flash for storage (?) which is not directly mapped to cpu address space so data needs to be loaded to ram at some point.

  • Good point, on the Bangle it does use more memory:

    /// more free space
    /// yes, `readback` uses more memory
    >var ab = st.readArrayBuffer("a")
    =new Uint8Array([72, 101, 108, 108, 111,  ... 255, 255, 255, 255, 255]).buffer

Avatar for AkosLukacs @AkosLukacs started