Decision Workspace
compact-map vs small_hash_map vs hybridmap
Side-by-side comparison of Rust crates
41
compact-map
growingv0.1.0
'Small map' optimization: store up to a small number of key-value pairs on the stack.
49
small_hash_map
growingv1.0.1
A hash map optimized for small collections with automatic stack-to-heap transition
43
hybridmap
growingv0.1.3
Hybrid map using smallvec and the std hashmap
Core Metrics
| compact-map | small_hash_map | hybridmap | |
|---|---|---|---|
| Health Score | 41 | 49 | 43 |
| Total Downloads | 1.5K | 161 | 4.8K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 0 | 0 |
| Releases | 1 | 2 | 4 |
| Last Updated | 904d ago | 261d ago | 208d ago |
| Age | 2y 5m | 8m | 2y 8m |
Health Breakdown
compact-map
Maintenance
1
Quality
18
Community
5
Popularity
4
Documentation
13
small_hash_map
Maintenance
8
Quality
19
Community
6
Popularity
3
Documentation
13
hybridmap
Maintenance
9
Quality
14
Community
3
Popularity
4
Documentation
13
Technical Details
| compact-map | small_hash_map | hybridmap | |
|---|---|---|---|
| Version | 0.1.0 | 1.0.1 | 0.1.3 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT OR Apache-2.0 | MIT | Apache-2.0 |
| Dependencies | 1 | 0 | 5 |
| Crate Size | 19KB | 16KB | 18KB |
| Features | 5 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •small_hash_map leads with a health score of 49/100, but none of the options score above 80.
- •hybridmap has the most downloads (4.8K), suggesting wider adoption.
- •⚠ compact-map has not been updated in over a year.
- •compact-map, hybridmap are pre-1.0 — API may change.