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

Increase wasm memory limit to 3mb #1035

Merged
merged 1 commit into from
Feb 19, 2024
Merged

Conversation

benthecarman
Copy link
Collaborator

While debugging #1032 found how to increase our memory for wasm. This will 3x from the default stack size to 3mb.

@TonyGiorgio
Copy link
Contributor

Can we go much bigger?

@benthecarman benthecarman linked an issue Feb 16, 2024 that may be closed by this pull request
@benthecarman
Copy link
Collaborator Author

Can we go much bigger?

probably, not sure how'd that effect things though

@benthecarman
Copy link
Collaborator Author

tried 3gb and things stopped working so there is an upper limit

@TonyGiorgio
Copy link
Contributor

More research should be made into this parameter change, and commented in the file.

@benthecarman
Copy link
Collaborator Author

Tried 30mb and things worked fine, imo it'd make sense to increase to 3mb and see how it behaves. 2mb increase is basically nothing on modern devices and we can see if the out of bounds issues go away. If not we can look into large increases to the limit

@TonyGiorgio
Copy link
Contributor

That sounds good but I want to know more before we change anything. Surely you found out about this somewhere.

@benthecarman
Copy link
Collaborator Author

sorry thought i linked it

rustwasm/wasm-pack#479

@benthecarman benthecarman merged commit 949b856 into master Feb 19, 2024
9 checks passed
@benthecarman benthecarman deleted the increase-wasm-memory branch February 19, 2024 14:11
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

Successfully merging this pull request may close these issues.

Index out of bounds when running in wasm
2 participants