mirror of
https://github.com/panjf2000/ants.git
synced 2025-12-16 18:11:03 +00:00
Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
commit
ebb86ab67f
@ -17,6 +17,7 @@ Package ants implements a fixed goroutine pool for managing and recycling a mass
|
|||||||
## Features:
|
## Features:
|
||||||
|
|
||||||
- Automatically managing and recycling a massive number of goroutines.
|
- Automatically managing and recycling a massive number of goroutines.
|
||||||
|
- Periodically clearing overdue goroutines.
|
||||||
- Friendly interfaces: submitting tasks, getting the number of running goroutines, readjusting capacity of pool dynamically, closing pool.
|
- Friendly interfaces: submitting tasks, getting the number of running goroutines, readjusting capacity of pool dynamically, closing pool.
|
||||||
- Efficient in memory usage and it even achieves higher performance than unlimited goroutines in golang.
|
- Efficient in memory usage and it even achieves higher performance than unlimited goroutines in golang.
|
||||||
|
|
||||||
|
|||||||
@ -18,6 +18,7 @@
|
|||||||
## 功能:
|
## 功能:
|
||||||
|
|
||||||
- 实现了自动调度并发的goroutine,复用goroutine
|
- 实现了自动调度并发的goroutine,复用goroutine
|
||||||
|
- 定时清理过期的goroutine,进一步节省资源
|
||||||
- 提供了友好的接口:任务提交、获取运行中的协程数量、动态调整协程池大小
|
- 提供了友好的接口:任务提交、获取运行中的协程数量、动态调整协程池大小
|
||||||
- 资源复用,极大节省内存使用量;在大规模批量并发任务场景下比原生goroutine并发具有更高的性能
|
- 资源复用,极大节省内存使用量;在大规模批量并发任务场景下比原生goroutine并发具有更高的性能
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user