panjf2000/ants
🐜🐜🐜 ants is the most powerful and reliable pooling solution for Go. observed · 2026-08-28
Health v2 · maintenance only
76/100
- Activity 90
- Release rhythm 43
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 431
- age_days: 3029
- days_rel: 166
- days_push: 60
- n_releases_24m: 2
Adoption not part of the score
14492 stars · 1436 forks observed · 2026-08-28
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-08-28 · f5829f047919
- homepage: https://ants.andypan.me/ · fetched 2026-08-29 · 45f900babef8
- site_page: https://pkg.go.dev/about · fetched 2026-08-29 · 757852027879
- site_page: https://go.dev/project · fetched 2026-08-29 · d5ca00bb378b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| panjf2000/ants | main | 76 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem