Decision Workspace
compact-map vs hybridmap vs small_hash_map
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.
50
hybridmap
growingv0.1.3
Hybrid map using smallvec and the std hashmap
49
small_hash_map
experimentalv1.0.1
A hash map optimized for small collections with automatic stack-to-heap transition
Core Metrics
| compact-map | hybridmap | small_hash_map | |
|---|---|---|---|
| Health Score | 41 | 50 | 49 |
| Total Downloads | 1.5K | 4.3K | 39 |
| 30d Downloads | 6 | 74 | 5 |
| Dependents | 0 | 0 | 0 |
| Releases | 1 | 4 | 2 |
| Last Updated | 708d ago | 11d ago | 65d ago |
| Age | 1y 11m | 2y 1m | 2m |
Health Breakdown
compact-map
Maintenance
1
Quality
18
Community
5
Popularity
4
Documentation
13
hybridmap
Maintenance
16
Quality
14
Community
3
Popularity
4
Documentation
13
small_hash_map
Maintenance
10
Quality
18
Community
6
Popularity
2
Documentation
13
Technical Details
| compact-map | hybridmap | small_hash_map | |
|---|---|---|---|
| Version | 0.1.0 | 0.1.3 | 1.0.1 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | MIT OR Apache-2.0 | Apache-2.0 | MIT |
| Dependencies | 1 | 5 | 0 |
| Crate Size | 19KB | 18KB | 16KB |
| Features | 5 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •hybridmap leads with a health score of 50/100, but none of the options score above 80.
- •⚠ compact-map has not been updated in over a year.
- •compact-map, hybridmap are pre-1.0 — API may change.