barretenberg icon indicating copy to clipboard operation
barretenberg copied to clipboard

Audit increase to wasm initial memory

Open ludamad opened this issue 9 months ago • 0 comments

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

ludamad avatar May 28 '24 14:05 ludamad