-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Is it safe to reuse value from AsyncProducer.Successes() #1302
Comments
Can you please elaborate more and give a quick use case? |
My messages in megabytes and I want to check AsyncProducer.Successes and put those slices to sync.Pool to reuse later in order to reduce pressure to GC. |
More curious - First of all, sync.Pool gets cleared every GC cycle, so you should use it very carefully, but I am more curious about your storing messages from success and doing something with them, can you tell me more about your use case? |
Ok. My algorithm as following:
Release loop:
My question is: |
Thank you for taking the time to raise this issue. However, it has not had any activity on it in the past 90 days and will be closed in 30 days if no updates occur. |
This question is quite interesting. Does someone has an answer for it? |
Is it safe to reuse value from AsyncProducer.Successes() to next messages? Due to lack of documentation in the code it is not clear.
Need to clarify it in the doc.
The text was updated successfully, but these errors were encountered: