-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[browser] improve default initial memory size #80507
[browser] improve default initial memory size #80507
Conversation
Tagging subscribers to 'arch-wasm': @lewing Issue DetailsIn both normal and re-link with wasm workload Contributes to #61925
|
/azp run runtime-wasm |
Azure Pipelines successfully started running 1 pipeline(s). |
Here the wasm-ld would calculate minimal value it needs for stack and global variables, and segment sizes But unfortunately emscripten is sending a specific value Why our AOT adds data segments ? |
I suspect that the extra data in the data segment when AOT are coming from mapping metadata_token -> wasm func index.
|
#80653 is related |
One possible improvement, which doesn't need to be part of this PR, is to not run the llvm-size and the task when the memory size is already set by the user. |
/azp run runtime-wasm |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the idea of eventually using the managed path in the task but that is an implementation detail that can be prioritized separately
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good. Some comments.
Co-authored-by: Ankit Jain <radical@gmail.com>
Co-authored-by: Ankit Jain <radical@gmail.com>
Co-authored-by: Ankit Jain <radical@gmail.com>
Co-authored-by: Ankit Jain <radical@gmail.com>
/azp run runtime-wasm |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 👍
CI failures are unrelated |
I tried the .net 7 backport. |
This change doesn't actually speed up loading the app. It changes the amount of memory that is allocated when the app starts. |
In both normal and re-link with wasm workload
Make default initial memory size:
DATA
segmentsContributes to #61925
Contributes to #66313
Contributes to #79909
Contributes to #73949
Simplified backport to Net7 is #80849