[.NET] Missing linker optimizations #11447
Labels
dotnet
An issue or pull request related to .NET (6)
enhancement
The issue or pull request is an enhancement
Milestone
The .NET 6 linker no longer runs TypeMapStep for assemblies up-front. Instead the linker discovers base types on-demand (and the known overrides at any given point may be incomplete).
CoreTypeMapStep is not part of the .NET 6 macios linker pipeline, so some optimizations are not enabled:
IsNSObject
checks are not cachedIsDirectBinding
checks are not optimized (since they rely on information normally cached by CoreTypeMapStep)edit: another missed opportunity is that
CollectUnmarkedMembersSubStep
runs before MarkStep so it will effectively track all members. Ideally this step would run after Mark.The text was updated successfully, but these errors were encountered: