Skip to content

Remove less individual sync calls to get compilation options.#72951

Merged
CyrusNajmabadi merged 6 commits intodotnet:mainfrom
CyrusNajmabadi:syncLessOptions
Apr 10, 2024
Merged

Remove less individual sync calls to get compilation options.#72951
CyrusNajmabadi merged 6 commits intodotnet:mainfrom
CyrusNajmabadi:syncLessOptions

Conversation

@CyrusNajmabadi
Copy link
Contributor

Followup to #72930.

before, we make nearly 400 calls to get compilation options:

image

After, it's just 8:

image

image

@ghost ghost added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Apr 9, 2024
@CyrusNajmabadi CyrusNajmabadi marked this pull request as ready for review April 9, 2024 21:02
@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner April 9, 2024 21:03
@CyrusNajmabadi CyrusNajmabadi requested a review from ToddGrun April 9, 2024 21:15
@CyrusNajmabadi
Copy link
Contributor Author

@ToddGrun ptal.

projectInfoChecksums.Add(newProjectChecksums.Info);
// Note: it's common to need to collect a large set of project-attributes and compilation options. So
// attempt to collect all of those in a single call for each kind instead of a call for each instance
// needed.
Copy link
Contributor

Choose a reason for hiding this comment

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

This code only really needs to execute on changed projects, rignt? If so, could we move this code down there and have it only work on checksums from those projects?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed and added projects. which is precisely what is in newProjectIdToStateChecksums.

Copy link
Contributor

@ToddGrun ToddGrun left a comment

Choose a reason for hiding this comment

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

:shipit:

@CyrusNajmabadi CyrusNajmabadi enabled auto-merge April 9, 2024 21:27
@CyrusNajmabadi
Copy link
Contributor Author

@jasonmalinowski For review when you get back.

@dibarbet dibarbet modified the milestones: Next, 17.11 P1 Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants