• I did some testing with new function to use strings in flash.
    Testcase is a SHA1-function and an server-object in WebIDE.
    For testing a simple function calls SHA1 and creates an object.

    • sent to the board with minification free:985
    • checked memory some seconds later free:1168
    • called testing function free:1101, duration 553ms
    • checked memory some seconds later free:1133

    Next testcase has SHA1-function and server-object in Flash.
    Both, function and object are executed with eval from Flash.

    • sent to the board with minification free:1156
    • checked memory some seconds later free:1174
    • called testing function free:1113, duration 500ms
    • checked memory some seconds later free:1144

    Result from this test(IMHO) is:

    • sending from WebIDE takes some memory which is free later.
    • at the end memory consumption does not change much.
    • source from Flash executes 10% faster, no idea why
    • reading sources from flash can be helpful for state oriented apps, where functions/objects are not needed all the time. Not used functions could then be dropped and others could be reloaded. LUA on ESP8266 supports something like this.
    • I would like to have this function, especially for ESP8266 where memory is a problem
About

Avatar for JumJum @JumJum started