I suppose an image loaded when app starts is held in RAM, but then I suppose holding that image isn't as heavy as repeatedly loading it AND holding it
Actually documentation of require("Storage").read says that it does NOT use RAM. It returns some kind of reference to the file data.
(But in general using more RAM can be a downside of creating variables outside functions.)
© Espruino, powered by microcosm.
Report a problem