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

seekReadTypeDefRowExtents returns a struct tuple #9221

Merged

Conversation

cartermp
Copy link
Contributor

In a trace from here: https://developercommunity.visualstudio.com/content/problem/1035124/trace-of-editing-experience-with-in-memory-cross-p-1.html

I found what looked like needless allocations of a tuple of two integers:

image

As with some other PRs, this should be a slight improvement since it's just tupling up two ints.

@cartermp cartermp requested review from dsyme and TIHan May 18, 2020 00:07
Copy link
Contributor

@TIHan TIHan left a comment

Choose a reason for hiding this comment

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

This is fine. Returning two ints as a struct tuple will in general be better, and always be better in a 64-bit scenario.

@TIHan TIHan merged commit 757630f into dotnet:master May 26, 2020
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Feb 23, 2021
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.

2 participants