Uh oh!
There was an error while loading. Please reload this page.
System.Net.WebProxy Bypass regex list optimization - #73803
Conversation
ghost
commented
Aug 11, 2022
Tagging subscribers to this area: @dotnet/ncl Issue DetailsAdded change tracking to BypassArrayList to avoid reconstructing the bypass regex list at every call of IsBypassed Fix #73703
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
stephentoub
left a comment
There was a problem hiding this comment.
Other than the comments, the change generally LGTM. Thanks for working on this.
Uh oh!
There was an error while loading. Please reload this page.
Added change tracking to BypassArrayList to avoid reconstructing the bypass regex list at every call of IsBypassed Fixdotnet#73703
DirtyTrackingArrayList => ChangeTrackingArrayList. IsDirty => IsChanged Inner class moved to end Ditched weird bool CheckDirty() with side effect in favor of void ResetIsChanged()
stephentoub
commented
Aug 14, 2022
As we have a deadline of tomorrow, I've addressed the open feedback and pushed a new commit. Thanks. |
onehourlate
commented
Aug 14, 2022
Ok. I should have added all the possible mutation tests cases, tough : that's obviously a plus. I don't like reflection in Unit Tests either, but I would have kept that test : with the current unit tests, the initial code would pass. I thought it was a net positive (despite the use of reflexion), to have unit tests that failed for the original code. Anyway. |
stephentoub
commented
Aug 14, 2022
No problem.
There are literally thousands of places things are cached around the core libraries, and except where there's a visible behavioral impact, we don't have unit tests for it. If you'd like to submit a PR to add a perf test for this to dotnet/performance, that'd be welcome.
Nope, thanks. |
stephentoub
commented
Aug 14, 2022
Thank you, @onehourlate. |
Added change tracking to BypassArrayList to avoid reconstructing the bypass regex list at every call of IsBypassed
Fix#73703