panjf2000/ants
Some data may be outdated โ see provenance labels.
๐๐๐ ants is the most powerful and reliable pooling solution for Go. observed ยท 2026-09-24
Health v2 ยท maintenance only
75/100
- Activity 95
- Release rhythm 36
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) โ computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 431
- age_days: 3077
- days_rel: 214
- days_push: 31
- n_releases_24m: 2
Adoption not part of the score
14510 stars ยท 1438 forks observed ยท 2026-09-24
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
ants is a high-performance goroutine pool library for Go that manages and recycles a massive number of goroutines with a fixed-capacity pool. It helps developers limit concurrency, handle panics gracefully, and reduce memory overhead in concurrent programs.
Use cases
- limit the number of goroutines in a Go program
- reuse goroutines to reduce memory allocation overhead
- submit tasks to a fixed-capacity worker pool
- gracefully recover from panics in concurrent task execution
- dynamically tune pool capacity at runtime
- process large batches of jobs with bounded concurrency
When to choose
- your Go application spawns huge numbers of short-lived goroutines and suffers memory pressure
- you need bounded concurrency with a simple, battle-tested API
- you want panic-safe task execution without crashing the process
When to avoid
- your workload has few long-running goroutines where pooling adds little value
- you need full-featured job queues with persistence or distributed scheduling
- you are not programming in Go
Facets
library ยท maturity stable
concurrency developer-tools developer-tools performance backend go cross-platform goroutine-pool worker-pool task-scheduling high-concurrency
4 sources
- readme: https://github.com/panjf2000/ants ยท fetched 2026-09-24 ยท f5829f047919
- homepage: https://ants.andypan.me/ ยท fetched 2026-10-19 ยท 45f900babef8
- site_page: https://pkg.go.dev/about ยท fetched 2026-10-19 ยท 757852027879
- site_page: https://go.dev/project ยท fetched 2026-10-19 ยท d5ca00bb378b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| panjf2000/ants | main | 75 |
For agents
markdown ยท JSON ยท MCP: product_card(name="panjf2000/ants")
Data as of 2026-10-19T08:05:51.212177+00:00 ยท Report a problem