AztecProtocol / barretenberg

Apache License 2.0
126 stars 77 forks source link

Audit increase to wasm initial memory #1011

Open ludamad opened 1 month ago

ludamad commented 1 month ago

Recently we had to bump initial wasm memory from 27 to 28 megabytes: From an emscripten thread: https://github.com/emscripten-core/emscripten/issues/20888 "The problem I suppose is the INITIAL_MEMORY really means + stack + static data + heap, but what you really want is a way to specify just the heap size. I guess for most folks this isn't a huge issue since most programs don't tend to have a lot of static data. 16mb of static data is fairly unusual I think.""

We should circle back sometime before launch/late testnet and see how much static data and stack clang thinks our program needs