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

Hard-code the numeric scalar types in CoerceValue and simplify enum marshalling to remove any usage of Convert.ChangeType. #1487

Merged
merged 2 commits into from
Feb 1, 2024

Conversation

jkoritzinsky
Copy link
Member

Convert.ChangeType was rooting a significant amount of code that would never be used (such as string.IConvertible.ToDateTime).

This PR will allow us to trim a significant amount of code in many cases (IConvertible isn't a commonly used type nowadays).

…arshalling to remove any usage of Convert.ChangeType.

Convert.ChangeType was rooting a significant amount of code that would never be used (such as string.IConvertible.ToDateTime).
Copy link
Member

@Sergio0694 Sergio0694 left a comment

Choose a reason for hiding this comment

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

Looks awesome!! Will share size diffs when the CI finishes 🙂

@Sergio0694
Copy link
Member

Saves 57 KB!

image

@manodasanW manodasanW merged commit 5b02525 into staging/AOT Feb 1, 2024
9 checks passed
@jkoritzinsky jkoritzinsky deleted the users/jekoritz/no-convert branch February 2, 2024 19:35
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