Open ehsannm opened 4 years ago
Hi @ehsannm,
Yes, this is a known issue when using []byte
instead of *[]byte
within the sync.Pool
. I think I can fix this soon, thanks!
thanks @gobwas, I am looking forward to the fix. Also I am happy to help if you agreed
Hi,
I was benchmarking my lib which is using of gobwas/pbytes package extensively, however, during my benchamrks i found that there is a large amount of allocation happens in pool.Put() function. I checked i didn't find anything. That is why i have asking it here maybe you could help me to find out.