paritytech/polkadot-sdk-docs

Ref docs for `wasm_memory`

Opened this issue · 0 comments

Create the reference docs as part of the Developer Hub -> https://github.com/paritytech/polkadot-sdk/blob/9c2b3eaa8c05f4f25809e87f1890679261cd1e03/developer-hub/src/reference_docs/mod.rs#L82

The focus should be: Learn about all the memory limitations of the WASM runtime when it comes to memory usage.

  • Stack: Need to use Box<_>
  • Heap: Substrate imposes a limit. PvF execution has its own limits
  • Heap: There is also a maximum amount that a single allocation can have.