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

cache GetHelperType lookup #838

Merged
merged 1 commit into from
May 6, 2021
Merged

cache GetHelperType lookup #838

merged 1 commit into from
May 6, 2021

Conversation

Scottj1s
Copy link
Member

@Scottj1s Scottj1s commented May 5, 2021

fixes #785

Tested with multiple runs of TestStrings (100 iterations) and saw about a 10% improvement

@Scottj1s Scottj1s merged commit 56b520f into master May 6, 2021
@Scottj1s Scottj1s deleted the scottj1s/cache_helper_type branch May 6, 2021 16:21
@jkoritzinsky
Copy link
Member

@Scottj1s can we also update the code-gen to use attributes to tie a type to it's ABI/ABI.Impl type for new projections and use this cached Type.GetType lookup for older projections? Using an attribute will also help with linkability.

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.

Cache results in WinRT.TypeExtensions.FindHelperType to avoid calling Type.GetType().
3 participants