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
How much memory per goroutine pool size? Can you please put this on main page?
p, _ := ants.NewPool(50000) <- basically goroutine use 2kb / 4kb per go routine
last question:
pool.Tune(100000) <- May I ask what's the "optimum size" for this? what's a good suggestion / advise on setting size? also on what occasion will u suggest tuning this size? please put the number of bytes each pool is on front page as mentioned so we can calculate and adjust better with your input.
The text was updated successfully, but these errors were encountered:
panjf2000
changed the title
How much memory per goroutine pool size? Can you please put this on main page?
About the memory consumption of pool
Nov 7, 2020
How much memory per goroutine pool size? Can you please put this on main page?
p, _ := ants.NewPool(50000) <- basically goroutine use 2kb / 4kb per go routine
From benchmark, it's 50k pool
https://github.com/panjf2000/ants/#-performance-summary
total 10M ants instance is 38mb which means each item size is 760bytes with 50000 items.
is 760bytes the limit for each pool item?
last question:
pool.Tune(100000) <- May I ask what's the "optimum size" for this? what's a good suggestion / advise on setting size? also on what occasion will u suggest tuning this size? please put the number of bytes each pool is on front page as mentioned so we can calculate and adjust better with your input.
The text was updated successfully, but these errors were encountered: