Uh oh!
There was an error while loading. Please reload this page.
[wasm] Introduce <InvariantTimezone> build flag - #87284
Conversation
ghost
commented
Jun 8, 2023
Tagging subscribers to 'arch-wasm': @lewing Issue DetailsIn Net8 we bundle the timezone database into .wasm file by default. It's not separate download anymore. To to make download size of wasm/wasi application smaller, we could link it out. In the project file Requires re-linking with wasm workload. Also backward compatible with Fixes #37973 for wasm
|
maraf
commented
Jun 8, 2023
Is it the right time to have two WASM flavors/files in the runtime pack and choose between them during client app build? |
pavelsavara
commented
Jun 8, 2023
I don't have bandwidth to implement it. |
756d84c to
cda65dbComparepavelsavara
commented
Jun 26, 2023
/azp run runtime-wasm |
|
Azure Pipelines successfully started running 1 pipeline(s). |
pavelsavara
commented
Jun 26, 2023
/azp run runtime-wasm |
|
Azure Pipelines successfully started running 1 pipeline(s). |
# Conflicts: # src/mono/sample/wasm/browser-advanced/Wasm.Advanced.Sample.csproj
pavelsavara
commented
Jun 28, 2023
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.
pavelsavara
commented
Jun 28, 2023
/azp run runtime-wasm-optional |
|
Azure Pipelines successfully started running 1 pipeline(s). |
kg
commented
Jun 28, 2023
How big is the size savings from this? Just curious |
| Author: [Pavel Savara](https://github.com/pavelsavara) | ||
| It's currently only available for Browser OS |
There was a problem hiding this comment.
Maybe specifically call out that it strips the tz data from the binary
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
pavelsavara
commented
Jun 29, 2023
over 200KB |
# Conflicts: # src/mono/wasm/build/WasmApp.targets

In Net8 we bundle the timezone database into .wasm file by default. It's not separate download anymore.
To to make download size of browser/wasi application smaller, we could link it out.
The runtime would behave as if there was no timezones in the database and use UTC.
For WASI, it doesn't try to load it from host FS unless you also set
TZDIRenv variable.In the project file
Requires re-linking with wasm workload.
Also backward compatible with
BlazorEnableTimeZoneSupportbut with workload.Fixes#37973 for wasm