hprose / hprose-golang

Hprose is a cross-language RPC. This project is Hprose for Golang.
MIT License
1.26k stars 205 forks source link

sync.Pool will clean up every GC #71

Closed linkerlin closed 2 years ago

linkerlin commented 6 years ago

sync.Pool is a bad choice

linkerlin commented 6 years ago

sync.Pool 会在每次GC的时候清空,也就是说,最多是存活2分钟.不是很高效.

andot commented 6 years ago

那应该怎么改会高效一些呢