Closed skrater closed 6 years ago
Seeing the code, you are using a map to get sync.Pool according with their size. AFAIK the golang map is not thread safe, or i'm wrong?
map
sync.Pool
Hi @skrater.
That map is read-only, e.g. it is not being changed over time. So that is why it is thread safe.
Seeing the code, you are using a
map
to getsync.Pool
according with their size. AFAIK the golangmap
is not thread safe, or i'm wrong?