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

Fix slow execution when many breakpoints are used #14953

Merged
merged 8 commits into from
May 23, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix code factor issues
  • Loading branch information
nohwnd authored and daxian-dbw committed May 22, 2023
commit ae921de469d49ffe72ca5438d31560178cb8d8f5
3 changes: 1 addition & 2 deletions src/System.Management.Automation/engine/debugger/debugger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1264,8 +1264,7 @@ private void AddPendingBreakpoint(LineBreakpoint breakpoint)
_pendingBreakpoints.AddOrUpdate(
breakpoint.Script,
new ConcurrentDictionary<int, LineBreakpoint> { [breakpoint.Id] = breakpoint },
daxian-dbw marked this conversation as resolved.
Show resolved Hide resolved
(_, dictionary) => { dictionary.TryAdd(breakpoint.Id, breakpoint); return dictionary; }
);
(_, dictionary) => { dictionary.TryAdd(breakpoint.Id, breakpoint); return dictionary; });
}

private void AddNewBreakpoint(Breakpoint breakpoint)
Expand Down