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

Optimize InputTypes memory manager for downlevel TFMs #600

Merged
merged 1 commit into from
Oct 9, 2023

Conversation

Sergio0694
Copy link
Owner

Description

This PR temporarily replaces RVA spans with static arrays for the generated InputTypes properties, as it allows skipping array allocations every time on downlevel targets. It's a very small per regression on .NET 6+ targets. Once downlevel support is dropped, this will just be reverted to using an RVA span (which uses the new CreateSpan intrinsic).

@Sergio0694 Sergio0694 added the optimization 🚀 Performance improvement to existing APIs label Oct 9, 2023
@Sergio0694 Sergio0694 force-pushed the dev/downlevel-input-type-span branch from a42abdd to 5bff682 Compare October 9, 2023 16:14
@Sergio0694 Sergio0694 merged commit e188ef3 into main Oct 9, 2023
48 checks passed
@Sergio0694 Sergio0694 deleted the dev/downlevel-input-type-span branch October 9, 2023 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
optimization 🚀 Performance improvement to existing APIs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant