Uh oh!
There was an error while loading. Please reload this page.
[WASM] Add ILStrip task to wasm app build process - #88926
Conversation
Are we confident that this handles all the cases where wasm might transition to the interpreter appropriately? |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
radical
commented
Jul 14, 2023
Also, test needed in |
radical
commented
Jul 14, 2023
And could you please add some detail about what the PR is doing, like what the default is for the property, and what it will do, and/or affect? |
ghost
commented
Jul 14, 2023
* Methods which have 'deopt' set can enter the interpreter during EH. * Methods which have 'interp_entry_only' set are AOTed, but the AOT code is only used to enter the interpreter.
lewing
commented
Jul 26, 2023
cc @kg |
fanyang-mono
commented
Jul 27, 2023
I am trying to test it with as many apps as I could get a hold on before merging it. TBH, I can't guarantee that this feature is going to work 100% for all wasm apps, that's why it is off by default. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
vargaz
commented
Aug 9, 2023
The mono changes look ok to me. |
lambdageek
left a comment
There was a problem hiding this comment.
LGTM. Consider changing WASMStripIL to WasmStripIL.
Is it worth calling out that this only makes sense with AOT right in the property name? Maybe WasmStripILAfterAOT ?
Uh oh!
There was an error while loading. Please reload this page.
fanyang-mono
commented
Aug 9, 2023
Will enable WASM AOT tests with |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Fixes#88696
With this PR, the customer is able to create an WASM app and enabling IL trimming for AOT compiled methods. By default, this is disabled. To enable it, build the app with
WasmStripILAfterAOT =true. This change help producing a smaller WASM app.Impact of this change is displayed as follows. I measured the size of
_frameworkafter compression using brotli for wasm apps with AOT enabled:src/mono/sample/wasm/browsersrc/mono/sample/wasm/browser-bench