ants
ants copied to clipboard
🐜🐜🐜 ants is a high-performance and low-cost goroutine pool in Go./ ants 是一个高性能且低损耗的 goroutine 池。
hello, @panjf2000 `func NewPoolWithFunc(size int, pf func(interface{}), options ...Option)` in NewPoolWithFunc, pf only have an ingerface{}, but i want to pass at least two args, how to solve tihes? my...
由于 [Issue 142 Why not “p.Running()
doing so to call invoke does a lot of memory allocations. possible to replace {}Interface with [][]byte or something similar? coz the allocation generated by using panjf is rather unbearable...
优先级队列支持
**Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 优先级调度。比如除了 Submit 之外,提供 SubmitUrge...
## Dear users of `ants` This is a notice about an issue of `ants` in GO modules, the v1.2.0 has been re-tagged with a new commit, which causes the **checksum...
hi,你好,pprof性能分析时, 偶尔会出现revertWorker内time.Now()占用CPU较高的情况,想请教一下,如果把获取当前时间换成另一种性能更好但可能有误差(误差5ms)的方法,会对整体有较大影响吗?我自己的理解,默认1s过期的情况下,可能会导致有些worker的回收时间延迟1s,但是不太清楚这个对ants整体的影响
Will websocket be written with ants be more performant than using solutions such as gobwas or fastws With reference to go routines being used in websocket here https://www.freecodecamp.org/news/million-websockets-and-go-cc58418460bb/ and also...
For 10M tasks using only 1.3gb, can you put your server spec into front page for your benchmark? It seems to be very very good.
How much memory per goroutine pool size? Can you please put this on main page? p, _ := ants.NewPool(50000)
possible to use ants as a soft-realtime go func() like erlang? sorry i hv yet to explore this code in detail but i'm exploring options to make goroutines handle more...