You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Improve] pool sendRequest to improve producer perf (#1126)
### Motivation
`sendRequest ` in producer is a frequently allocated struct, pool it can decrease the memory allocation.
### Modifications
1. Init a sync.Pool;
2. Get sendRequest from the pool when we need;
3. Reset sendRequest and put it back into the pool when it is done.
---------
Co-authored-by: gunli <[email protected]>
0 commit comments