-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Always make project changes using the 'batch scope' approach to reduce duplication. #74863
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -238,6 +239,8 @@ private void ChangeProjectProperty<T>( | |||
Func<SolutionChangeAccumulator, ProjectUpdateState, T, ProjectUpdateState> updateSolution, | |||
bool logThrowAwayTelemetry = false) | |||
{ | |||
using var _ = CreateBatchScope(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like CreateBatchScope takes the semaphore inside. Any benefit of creating a CreateBatchScope_NoLock
and moving it inside the gate we already take below?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Talked offline. Def an option. Would prefer to see if we actually run into any contention that warrants this.
Followup to #74858