-
Notifications
You must be signed in to change notification settings - Fork 877
Reduce AOT size of ArrayHandler #4926
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
Conversation
| static Exception CantWriteTypeException(Type type) | ||
| => new InvalidCastException($"Can't write type {type} as an array of {typeof(TElement)}"); | ||
| static InvalidCastException CantWriteTypeException(Type type) | ||
| => new($"Can't write type {type} as an array of {typeof(TElement)}"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Surprisingly, moving CantWriteTypeException together with CantWriteTypeException to base class results in 16kb size regression (no idea why, perhaps because we pass the type?).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Odd... Maybe @NinoFloris has an idea.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should check after #4899 is merged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, still the same.
f060566 to
919ea79
Compare
| static Exception CantWriteTypeException(Type type) | ||
| => new InvalidCastException($"Can't write type {type} as an array of {typeof(TElement)}"); | ||
| static InvalidCastException CantWriteTypeException(Type type) | ||
| => new($"Can't write type {type} as an array of {typeof(TElement)}"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Odd... Maybe @NinoFloris has an idea.
373920c to
5ada2f7
Compare
Contributes to #4799