-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[mono] iOS - Size reduction: don't emit impossible generic function instantiations #54850
Comments
Tried a toy workaround for this that doesn't generate ref instantiations for functions with at least one struct constraint and doesn't generate gsharedvt instantiations for functions with at least one class constraint. This results in a savings of around 200 KiB in |
Assigning to @ivanpovazan |
Seen while investigating size differences between legacy Mono and netcore Mono when used for iOS.
Some generic functions take generic parameters that themselves have type parameters that have
struct
constraints, but we still generateT_REF
(boxed, non-value-type, shared) instantiations for these functions.(This should affect any target that uses FullAOT; this includes iOS/tvOS)
The text was updated successfully, but these errors were encountered: