Repository navigation
[wasm][coreclr] Precompress reusable runtime-pack assets - #137939
radekdoulik wants to merge 7 commits into
Conversation
Ship gzip runtime representations and their content metadata, and reuse them through the normal static-web-assets pipeline during app builds. Co-authored-by: Copilot App <[email protected]>
|
Azure Pipelines: Successfully started running 3 pipeline(s). 12 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
maraf
left a comment
There was a problem hiding this comment.
I believe this should be a much smaller PR. There is a prior in StaticWebAssets SDK for shipping precompressed asset inside of a nuget package. We should learn from the approach to find out how to reuse most of the pieces.
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Use the SDK materializer directly and exercise its normal build compression pipeline in the hosted fixture. Filter eligible WebCIL representations before candidate selection. Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Distinguish empty and populated selection stamps, and normalize the fixture temp path before comparing SDK asset identities. Co-authored-by: Copilot App <[email protected]>
|
@maraf, on SDK reuse: I removed the extra Discovery expects a Note Drafted with GitHub Copilot. |
maraf
left a comment
There was a problem hiding this comment.
Approving to get the branchmark numbers soon with a refactoring in a follow-up
Use raw or manifest-listed gzip pack entries in native, ICU, symbol-map, and ReadyToRun assertions. Keep the existing size comparisons and cover both pack layouts. Co-authored-by: Copilot App <[email protected]>
Precompress reusable CoreCLR browser-WASM assets in the runtime pack so Debug
builds can reuse the WebCIL, content hashes, and gzip bytes.
and ICU. Record separate original and encoded hashes in
PrecompressedAssets.xml.Keep source PEs, source-identity and format checks, and fallback conversion.
validates and copies the alternatives, defines endpoints, and negotiates
compression. App assets and boot configuration keep their normal build paths.
The runtime and WebAssembly SDK packs must be updated together: older SDK packs
cannot consume gzip-only runtime files. Consumers reuse the hashes from the
restored pack rather than rehashing payloads each build.
Validation
Validated against main
1ae3885b4290with SDK12.0.100-alpha.1.26557.102on macOS arm64, without restore or IP networking.
net12.0andnet472) and Wasm test project rebuild:zero warnings or errors.
WebcilInWasmSizesTests: 57 passed, no failures or skips, 23 fixture binlogs.The hosted cases run the SDK compression targets and verify pack gzip reuse,
normal app-asset compression, and per-client endpoints. The downgrade and
DisableBuildCompressionregressions pass.Full pack composition, native/R2R rebuilds, browser and Windows runs, AOT, and
publish were not rerun. Signing/SignCheck for catalogued JS inside gzip still
needs Release Engineering confirmation.
Earlier integration measurement
On earlier revision
3e45eba, six paired Havitdotnet runcaptures gave amedian run-to-render of 8.752 s to 8.135 s (7.05% lower). The runtime nupkg
went from 66,853,952 to 66,991,473 bytes; the app used 187 of 192 packaged
representations. That run used native inputs
4db17d3, SDK12.0.100-alpha.1.26480.102, app996fd31, and Chrome157.0.8103.40on anApple M2 Max with warm caches. It predates the latest changes and was not rerun.
Note
Drafted with GitHub Copilot.