From 20ddb0cb44f87c6f567d7c7f16c3b0597db3964e Mon Sep 17 00:00:00 2001 From: Gordon Williams Date: Thu, 7 May 2020 10:19:57 +0100 Subject: [PATCH] drop chunk size again - too tight --- js/appinfo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/appinfo.js b/js/appinfo.js index 6a91dce2d..b4d0b5426 100644 --- a/js/appinfo.js +++ b/js/appinfo.js @@ -72,7 +72,7 @@ var AppInfo = { } else { let code = storageFile.content; // write code in chunks, in case it is too big to fit in RAM (fix #157) - var CHUNKSIZE = 8192; + var CHUNKSIZE = 4096; storageFile.cmd = `\x10require('Storage').write(${JSON.stringify(storageFile.name)},${toJS(code.substr(0,CHUNKSIZE))},0,${code.length});`; for (var i=CHUNKSIZE;i