Skip to content

Support the custom-page-size proposal in Talckwasm #42

Description

@anlavandier

Support the custom-page-size proposal in Talckwasm

The WebAssembly custom-page-sizes proposal allows Wasm modules to have page sizes of either 65536 or 1.

It is in implementation phase and supported by the runtimes wasmi and wasmtime.
It has also recently been added to the LLVM linker wasm-ld so it's now possible (albeit annoying) to compile Rust Code to WebAssembly while using this proposal.

I am using this proposal for my wasm files because I'm working on running wasm on architectures where 64KiB of RAM is hard to come by and 128KiB is not happening. I'm also using talc because afaik it is the only maintained allocator that advertises WebAssembly apps as a usage scenario.
Currently, I am using a static arena but I'm thinking that using a grow-able heap would allow me to use less RAM in most contexts.

I am willing to work on this (It should only be a matter of a few lines of code anyway) but I would like your opinion on this before I do anything.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions