-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Closed
Labels
area-NativeAOT-coreclrquestionAnswer questions and provide assistance, not an issue with source code or documentation.Answer questions and provide assistance, not an issue with source code or documentation.
Description
NativeAOT compiler generates extra bookkeeping to support calling Equals/GetHashCode on structs. We generate it for async state machines, because they're structs. Do we have to?
A quick hack to not generate it produces 0.6% size savings for BasicMinimalApi. But not sure if it's a correct optimization. We don't have a good way to figure out the wrong thing happened at runtime (we're likely going to take "are the bytes the same" and "hash of the bytes" code paths).
NinoFloris
Metadata
Metadata
Assignees
Labels
area-NativeAOT-coreclrquestionAnswer questions and provide assistance, not an issue with source code or documentation.Answer questions and provide assistance, not an issue with source code or documentation.