dotnet / dotnet/runtime

[WASM] Investigate removing `System.Native.TimeZoneData.Invariant`

Open
#119,643 1 comment 0 reactions 1 assignee Claimed by @SingleAccretion View on GitHub
arch-wasm area-Build-mono
Dominant language
C#
Stars
18.3k
Forks
5.6k
PR merge metrics
PR metrics pending

Description

Since we have a feature switch guarding the use of the only native method that provides the data, if the managed linker is able to eliminate that native method reference from managed code, then the native linker won't bring in the data as well, meaning we would be able to fold `System.Native.TimeZoneData` into `System.Native` proper.

Implementing this would also need a test: build with invariant timezone, then build without and compare the size difference (should be about ~300kb). Note this requires actually using the relevant time zone APIs.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.