• I was concerned that Storage.write() might repeatedly rewrite the same page until the 4096 bytes are filled

    No, it'd actually be doing the same thing StorageFile does - afaik repeated writes to a page are not a big issue, it's just the amount of times you can erase the page that causes flash wear.

    I believe StorageFile now allocates at least 40kB for each file on Bangle.js - so it probably isn't that efficient for you!

  • I believe StorageFile now allocates at least 40kB for each file on Bangle.js - so it probably isn't that efficient for you!

    Oh wow that's pretty crazy. By using normal 'Storage' files we could probably reduce the production of un-erased flash pages by 40-fold, so compaction happens 40 times less frequently. Thanks!

About

Avatar for Gordon @Gordon started