Skip to content

Conversation

@vonzshik
Copy link
Contributor

Contributes to #4799

@vonzshik vonzshik marked this pull request as ready for review February 11, 2023 15:58
@vonzshik vonzshik requested a review from roji as a code owner February 11, 2023 15:58
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)}");
Copy link
Contributor Author

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?).

Copy link
Member

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.

Copy link
Contributor Author

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, still the same.

@vonzshik vonzshik force-pushed the 4799-reduce-array-handler-aot-size branch from f060566 to 919ea79 Compare February 26, 2023 17:40
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)}");
Copy link
Member

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.

@vonzshik vonzshik force-pushed the 4799-reduce-array-handler-aot-size branch from 373920c to 5ada2f7 Compare February 27, 2023 12:07
@vonzshik vonzshik enabled auto-merge (squash) February 27, 2023 12:32
@vonzshik vonzshik merged commit 91ab104 into main Feb 27, 2023
@vonzshik vonzshik deleted the 4799-reduce-array-handler-aot-size branch February 27, 2023 12:44
@roji roji mentioned this pull request Mar 3, 2023
16 tasks
@Brar Brar modified the milestone: 8.0.0 Nov 21, 2023
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.

3 participants