Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom-page-size and/or shrink memory #4006

Open
lum1n0us opened this issue Jan 6, 2025 · 2 comments
Open

Custom-page-size and/or shrink memory #4006

lum1n0us opened this issue Jan 6, 2025 · 2 comments

Comments

@lum1n0us
Copy link
Collaborator

lum1n0us commented Jan 6, 2025

WebAssembly/spec#1753 (comment)

The custom-page-size feature is a standard proposal that overlaps with the current shrink_memory implementation based on heap_base in wasm_loader.

The unresolved question is whether we should retain both features or just maintain one

Given that shrinking memory is not a standard operation, yet there is consistently a need to reduce memory usage, should we make it controllable and/or configurable? For instance, by using a compilation option and/or a command line option.

@yamt
Copy link
Collaborator

yamt commented Jan 6, 2025

Given that shrinking memory is not a standard operation, yet there is consistently a need to reduce memory usage, should we make it controllable and/or configurable? For instance, by using a compilation option and/or a command line option.

it makes sense.

while custom-page-sizes might be able to replace it in future, it's far from ready today.

@lum1n0us
Copy link
Collaborator Author

lum1n0us commented Jan 9, 2025

#4008 will fix it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants