• I removed my GPS user code (to save code space for this testing) and did the following testing below:

    Summary:
    @Gordon Removing "all" text/comments from user code saved 149 in memory usage.

    @DrAzzy - fiddling with optimizations produced very mixed results.
    Optimization #5 reduced memory usage but gave minification errors?
    It looks like more work is needed in the optimizations for the Espruino?
    Note: I did not try "all" combinations optimizations.

    More work is needed in increasing my user application memory usage ...

    Comment removal Testing

    1 Removed all comments from user application code
    Default: Settings/communications Minification: No minification & Module Minification: Whitespace only (default?)
    memory usage before: 1033
    memory usage after: 884
    savings: 149 <-------

    Error window block: None

    Optimization Testing

    2 Optimations combinations with no text in user code.
    Minification: Whitespace Only
    Module minification: Whitespace Only (Default?)

    memory usage before: 884
    memory usage after: 884
    savings: 0 - because of errors?

    Error window block ... Errors while minifying - sending unmodified code <-------

    3 Optimations combinations with no text in user code.
    Minification: Simple Optimizations
    Module minification: Whitespace Only (Default?)

    memory usage before: 884
    memory usage after: 884
    savings: 0 - because of errors?

    Error window block ... Errors while minifying - sending unmodified code <-------

    4 Optimations combinations with no text in user code.
    Minification: Advanced Optimizations (not recommended)
    Module minification: Whitespace Only (Default?)

    memory usage before: 884
    memory usage after: 884
    savings: 0 - because of errors?

    Error window block ... Errors while minifying - sending unmodified code <-------

    5 Optimations combinations with no text in user code.
    Minification: Simple Optimizations
    Module minification: Simple Optimizations

    memory usage before: 884
    memory usage after: 811
    savings: 73 - with errors <---------???? code reduction with errors?

    Error window block ... Errors while minifying - sending unmodified code <-------

    6 Optimations combinations with no text in user code.
    Minification: No minification
    Module minification: No minification

    memory usage before: 884
    memory usage after: 958
    savings: -74 (gain)

    Error window block: None

About

Avatar for user7114 @user7114 started