servo/rust-smallvec
"Small vector" optimization for Rust: store up to a small number of items on the stack observed · 2026-08-28
Health v2 · maintenance only
91/100
- Activity 99
- Release rhythm 76
- 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: 62
- age_days: 4168
- days_rel: 83
- days_push: 7
- n_releases_24m: 4
Adoption not part of the score
1695 stars · 191 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Rust library providing SmallVec, a vector-like collection that stores a small number of items inline on the stack and spills to the heap only when it exceeds capacity. It is a drop-in performance optimization for reducing heap allocations in hot code paths.
Use cases
- avoid heap allocations for small collections in rust
- store a few items on the stack instead of a vec
- optimize hot loops that allocate small vectors
- reduce allocator pressure in performance-critical rust code
- drop-in replacement for Vec with inline storage
When to choose
- you frequently create small vectors whose length is usually below a known bound
- allocation overhead shows up in profiling
- you want Vec-like API with stack storage
When to avoid
- collections are usually large or unbounded
- you need the exact size of Vec or rely on pointer identity
- you are not writing Rust
Facets
library · maturity active
concurrency developer-tools developer-tools performance rust cross-platform smallvec stack-allocation data-structures no-std
1 source
- readme: https://github.com/servo/rust-smallvec · fetched 2026-08-28 · a1142c6ed883
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| servo/rust-smallvec | main | 91 |
For agents
markdown · JSON · MCP: product_card(name="servo/rust-smallvec")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem