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

Seekreadcompresseduint32 to struct tuple #9222

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 other PRs, this one should be a small win since it's tupling up two integers

@cartermp cartermp requested review from dsyme and TIHan May 18, 2020 00:12
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.

Returning two integers as a struct tuple make this pretty safe, especially in a 64-bit scenario.

@TIHan TIHan merged commit 464bdc6 into dotnet:master May 26, 2020
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Feb 23, 2021
* seekReadTypeDefRowExtents returns a struct tuple

* seekReadCompressedUInt32 returns a struct tuple
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.

3 participants