-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
net: replace brand checks with identity checks #57341
net: replace brand checks with identity checks #57341
Conversation
Review requested:
|
primitives don't have identity, and |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #57341 +/- ##
==========================================
- Coverage 90.19% 90.19% -0.01%
==========================================
Files 630 630
Lines 185195 185195
Branches 36249 36243 -6
==========================================
- Hits 167036 167033 -3
- Misses 11132 11140 +8
+ Partials 7027 7022 -5
🚀 New features to boost your workflow:
|
I don't have any benchmark results to share at the moment. Even if I had, these changes will not move the needle a tiny single bit. |
… then why make the change if it won't move the needle? |
For refactor purposes, making the code align with the rest of the codebase, also for readability. But these are all open to discussion and can change from people to people. So, it's within your right to block if you think this is unnecessary. No hard feelings :-) |
Oh no, there's absolutely no reason to block here :-) if it's the consistent style in the project then that's sufficient reason on its own. I was just asking the question because if there's any performance-motivated change without a benchmark, then it's almost a certainty that the performance will be regressed in the future, so if it's worth making it faster, it's presumably worth keeping it faster. |
Landed in 3a497dc |
PR-URL: #57341 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
PR-URL: #57341 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
An identity check is always faster than a brand check.