Skip to content
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

Remove a GVM for deserializing nullable values #206

Merged
merged 1 commit into from
Dec 15, 2024

Conversation

agocke
Copy link
Collaborator

@agocke agocke commented Dec 15, 2024

GVMs (Generic Virtual Methods) can cause large code size increases in AOT. Because all reference types share a single code implementation, generics constrained to class don't have this downside. This change removes a GVM for deserializing nullable types, which includes nullable structs. Instead, deserializing nullable structs will box.

GVMs (Generic Virtual Methods) can cause large code size increases in AOT.
Because all reference types share a single code implementation, generics constrained
to class don't have this downside. This change removes a GVM for deserializing
nullable types, which includes nullable structs. Instead, deserializing nullable structs
will box.
@agocke agocke merged commit ed06e60 into serdedotnet:main Dec 15, 2024
1 check passed
@agocke agocke deleted the remove-mainline-gvm branch December 15, 2024 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant