You are reading a single comment by @fanoush and its replies. Click here to read the full conversation.
  • SPI flash is maped to adresses above 0x60000000 so e.g. require("Flash").read/write work with that. But what Gordon meant is that pieces of javascript that you are executing from flash are not loaded to ram as a whole so e.g. if you have javascript function with 128kb long code it is executed directly from SPI flash even including strings - so something like var s ="....60kb string of data ..." points directly to SPI flash without need of loading whole string to ram when evaluating it.
    Also Storage.write and Storage.read would work like that - giving you pointers backed directly by SPI flash.

About

Avatar for fanoush @fanoush started