-
Notifications
You must be signed in to change notification settings - Fork 2.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
Skip for-loop alloc in go/vt/discovery/healthcheck.go
#15326
Skip for-loop alloc in go/vt/discovery/healthcheck.go
#15326
Conversation
Signed-off-by: Tim Vaillancourt <[email protected]>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #15326 +/- ##
==========================================
- Coverage 67.53% 67.53% -0.01%
==========================================
Files 1561 1561
Lines 193387 193391 +4
==========================================
+ Hits 130607 130608 +1
- Misses 62780 62783 +3 ☔ View full report in Codecov by Sentry. |
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.
Good find.
Signed-off-by: Tim Vaillancourt <[email protected]>
…)" This reverts commit e549980. Signed-off-by: Dirkjan Bussink <[email protected]>
Description
This PR skips an allocation in a
for
-loop fromgo/vt/discovery/healthcheck.go
If I understand correctly this will cause 1 x allocation for
var tabletHealths []*TabletHealth
per execution of.waitForTablets(...)
vs<numTargets> x <numRetries>
Related Issue(s)
N/A
Checklist
Deployment Notes