dyne / Zenroom

Embedded no-code VM executing human-like language to manipulate data and process cryptographic operations.
https://dev.zenroom.org
GNU Affero General Public License v3.0
186 stars 61 forks source link

chore: update emsdk #865

Closed puria closed 1 month ago

jaromil commented 2 months ago

just out of curiosity, can we know the difference in time of execution between js tests with this branch and current HEAD?

jaromil commented 2 months ago

Can we activate the emsdk mimalloc port? from changelog: Add a port of mimalloc, a fast and scalable multithreaded allocator. To use it, build with -sMALLOC=mimalloc. (#20651)

jaromil commented 2 months ago

Check how this affects us (from 3.1.36 chlog):/

The following JavaScript runtime functions were converted to JavaScript library functions:

UTF8ArrayToString UTF8ToString stringToUTF8Array stringToUTF8 lengthBytesUTF8 If you use any of these functions in your JS code you will now need to include them explicitly in one of the following ways:

Add them to a __deps entry in your JS library file (with leading $) Add them to DEFAULT_LIBRARY_FUNCS_TO_INCLUDE (with leading $) Add them to EXPORTED_FUNCTIONS (without leading $) Set -sLEGACY_RUNTIME to include all of them at once.

Also consider using -sSTRICT