Skip to content

Conversation

@marek-safar
Copy link
Contributor

to make it trimmable. I also cleaned up GetTypeCode calls chain along the way.

@Dotnet-GitSync-Bot
Copy link
Collaborator

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@jkotas
Copy link
Member

jkotas commented Nov 21, 2020

Does it have measurable impact on GetTypeCode() performance? (It should not, but it may be worth it to double check.)

@marek-safar
Copy link
Contributor Author

The whole switch is ran only once per type

. I'm sceptical this change will be measurable.

@jkotas
Copy link
Member

jkotas commented Nov 21, 2020

Ah ok. I have not realized that the result is cached. LGTM.

@jkotas jkotas merged commit bb492cb into dotnet:master Nov 22, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants