We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It doesn't cleanup the timer until it fires, even if we ignore the result.
https://github.com/ipfs/go-bitswap/blob/84f8ab6cd0375229d06dc484667b9ed04a67b259/messagequeue/messagequeue.go#L231-L233
The text was updated successfully, but these errors were encountered:
Reuse timers instead of time.After in loops
ffcef93
Reusing a timer repeatedly results in less GC than time.After in each loop iteration. Closes #122
7bf89a7
refactor: reuse timers instead of time.After in loops (#687)
7780b0e
Closes #122 (cherry picked from commit 7bf89a7)
Successfully merging a pull request may close this issue.
It doesn't cleanup the timer until it fires, even if we ignore the result.
https://github.com/ipfs/go-bitswap/blob/84f8ab6cd0375229d06dc484667b9ed04a67b259/messagequeue/messagequeue.go#L231-L233
The text was updated successfully, but these errors were encountered: