-
Notifications
You must be signed in to change notification settings - Fork 703
internal/freelist: make pcache a map of struct{} #1082
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
Conversation
Thanks for your contribution 🙏🏽 imho, code clarity here is more convenient than saving the I used to follow the same approach always thinking that could have perf impact, however i realized that using the That being said, i believe we need benchmarks in order to prove the perf gains. |
/ok-to-test |
Hi @arturmelanchyk, Thanks for the pull request. Please ensure your commit is signed so the developer certificate of origin (DCO) check passes, i.e: git rebase HEAD~1 --signoff
git push --force Thanks again :) Ref: https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#commit-your-change |
Signed-off-by: Artur Melanchyk <[email protected]>
dea24e9
to
255bd68
Compare
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.
LGTM & thx
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.
LGTM. Thanks, @arturmelanchyk
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ahrtr, arturmelanchyk, ivanvc The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@arturmelanchyk would u kindly rebase against it has the fix for the windows timeout :) |
It's fine. Let's merge this PR. |
avoid unneeded
bool
allocation