You are reading a single comment by @NoMusicTuesdays and its replies.
Click here to read the full conversation.
-
Actually documentation of
require("Storage").read
says that it does NOT use RAM. It returns some kind of reference to the file data.https://www.espruino.com/Reference#l_Storage_read
(But in general using more RAM can be a downside of creating variables outside functions.)
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