On Thu, Jun 17, 2021 at 10:11 AM Robert Engels <[email protected]> wrote:
>
> You probably need multiple pools in and partition them. 500k accessors of a 
> shared lock is going to have contention.

That might well help, but note that sync.Pool does not have a shared
lock in general use.  The shared lock is only used when the pool is
first created, and each time that GOMAXPROCS changes.

Ian

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAOyqgcVg4G%2BCetk%2BTNGedDW7ZaOdZ3P51fAhk%2BN2fi4N6ujE2Q%40mail.gmail.com.

Reply via email to