gear
gear copied to clipboard
Expand the memory available for programs to more than 32 Mbytes
Problem to Solve
Currently, the maximum available memory for programs (both statical and dynamic) is limited to 512 Wasm pages (64 Kbytes per page), equal to 32 Mbytes.
Consider increasing the upper limit.
Possible Solution
Changing max buffer limit both in our Substrate fork and the core executor.
Notes
This limitation is based on the Subtrate's one, so this expansion will not work in the parachain.
Increasing this limit may be fatal if we somewhere run into single allocation >=512 wasm pages on substrate side
You can as well limit single allocation size, not the whole memory size