Skip to content

Simplify GraphNode - #14908

Merged
0101 merged 8 commits into
dotnet:mainfrom
0101:graphnode-simplification
Mar 20, 2023
Merged

Simplify GraphNode#14908
0101 merged 8 commits into
dotnet:mainfrom
0101:graphnode-simplification

Conversation

@0101

@01010101 commented Mar 15, 2023

Copy link
Copy Markdown
Contributor

The retryCompute = false mechanism, which is supposed to avoid repeating computation when the first requestor cancels, is unused. Deleting it makes it a bit easier to deal with GraphNode.

This PR also removes a lock and replaces it with Interlocked.Increment/Decrement.

@0101
0101 requested a review from a team as a code ownerMarch 15, 2023 17:20

@psfinakipsfinaki left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

YAGNI FTW

Comment threadsrc/Compiler/Facilities/BuildGraph.fs
Comment threadsrc/Compiler/Facilities/BuildGraph.fs
@T-Gro

Copy link
Copy Markdown
Member

Ready to merge?

@0101
0101 merged commit 1b5d9e4 into dotnet:mainMar 20, 2023
@01010101 mentioned this pull request May 3, 2023
22 tasks
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

6 participants

@0101@T-Gro@vzarytovskii@KevinRansom@psfinaki@En3Tho