ants
ants copied to clipboard
About the memory consumption of pool
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.