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

Make GreenNode.CreateList static #48536

Merged
merged 4 commits into from
Oct 13, 2020

Conversation

HurricanKai
Copy link
Member

@HurricanKai HurricanKai commented Oct 12, 2020

As discussed with @CyrusNajmabadi on discord this PR makes GreenNode.CreateList static and adjusts all usages.

This done to simplify the method and remove the virtual call which should help performance somewhat, but I couldn't get perf numbers that could directly confirm this.

I'm not sure whether members should also be reordered. I left them as is for now.

@HurricanKai HurricanKai requested a review from a team as a code owner October 12, 2020 21:47
@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.

@dnfadmin
Copy link

dnfadmin commented Oct 12, 2020

CLA assistant check
All CLA requirements met.

@333fred 333fred added Area-Compilers Community The pull request was submitted by a contributor who is not a Microsoft employee. labels Oct 12, 2020
Copy link
Member

@333fred 333fred left a comment

Choose a reason for hiding this comment

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

Done review pass (commit 1)

@CyrusNajmabadi
Copy link
Member

@dotnet/roslyn-compiler can we get a second pair of eyes on this nice community PR? :)

Copy link
Member

@333fred 333fred left a comment

Choose a reason for hiding this comment

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

LGTM (commit 4). @dotnet/roslyn-compiler for a second review. There are no perf numbers in this PR, but Kai is planning on submitting a second PR that actually refactors the implementation of GreenNode.CreateList that removes a bunch of double-allocations that should have a big impact, and this first change will simplify that.

@CyrusNajmabadi
Copy link
Member

There are no perf numbers in this PR,

True. Though changing these virtual methods (and extra parameters and whatnot) to just static calls, should be pure benefit. At worse, we should have no perf change. A best, potentially some uptick :)

@333fred 333fred merged commit 6d353ee into dotnet:master Oct 13, 2020
@ghost ghost added this to the Next milestone Oct 13, 2020
@333fred
Copy link
Member

333fred commented Oct 13, 2020

Thanks @HurricanKai!

@HurricanKai HurricanKai deleted the GreenNode-CreateList-Static branch October 13, 2020 20:06
@allisonchou allisonchou modified the milestones: Next, 16.9.P2 Nov 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Compilers Community The pull request was submitted by a contributor who is not a Microsoft employee.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants