In my testing for WA, the heap size right after startup is 2285568 bytes (often it is 1658880 bytes, but I wouldn't expect the difference to matter much). It never grows to more than 3 MB, so I've set ASMJS_TOTAL_MEMORY to 4 MB for WA (the error that occurs when the memory isn't enough is pretty clear, so we can increase it easily if needed).
This should improve startup time.
In my testing for WA, the heap size right after startup is 2285568 bytes (often it is 1658880 bytes, but I wouldn't expect the difference to matter much). It never grows to more than 3 MB, so I've set ASMJS_TOTAL_MEMORY to 4 MB for WA (the error that occurs when the memory isn't enough is pretty clear, so we can increase it easily if needed).