Skip to content

Added a few benchmarks for casting performance. Primarily dealing with variance.#922

Merged
billwert merged 6 commits intodotnet:masterfrom
VSadov:CastingBenches
Oct 10, 2019
Merged

Added a few benchmarks for casting performance. Primarily dealing with variance.#922
billwert merged 6 commits intodotnet:masterfrom
VSadov:CastingBenches

Conversation

@VSadov
Copy link
Member

@VSadov VSadov commented Oct 8, 2019

It looks like there is a good number of casting benchmarks already.

Just adding a few to cover variance and array conversions.

@VSadov
Copy link
Member Author

VSadov commented Oct 8, 2019

CC: @jkotas , @davidwrighton , @sergiy-k

@VSadov
Copy link
Member Author

VSadov commented Oct 10, 2019

I think I have addressed all the concerns so far.

Copy link
Contributor

@billwert billwert left a comment

Choose a reason for hiding this comment

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

One comment of another minor cleanup we could do. I think it's fine as it stands but the fix wouldn't hurt either.

I'll merge this sometime tomorrow morning to give others time to review and you to make this change if you want.

@VSadov
Copy link
Member Author

VSadov commented Oct 10, 2019

Also - it looks like I do not have write access to this.
If this meets merge requirements, can someone merge the PR?

@billwert billwert merged commit af2b2f1 into dotnet:master Oct 10, 2019
[Benchmark]
public void AssignArrayElementByVariance()
{
// no return is needed. The cast is potentially throwing and thus is not optimizable.
Copy link
Member

Choose a reason for hiding this comment

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

thanks for adding the comment! 👍

@VSadov VSadov mentioned this pull request Oct 14, 2019
7 tasks
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.

5 participants