Skip to content

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 TIHan and dsyme 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