acmap
acmap is an actor-style, sharded async map for Rust, built on tokio channels.
It provides a DashMap-like API surface for common operations, with two write paths:
insert: request/response write (returns previous value)insert_fast: fire-and-forget write for high-throughput scenarios
Features
- Sharded actor model for parallel write handling
- Async API for map operations
- Fast-path write API for lower overhead
- Simple benchmark example in
examples/benchmark.rs
Installation
Add to your Cargo.toml:
[]
= { = "." }
Quick Start
use AcMap;
async
Run
Project Layout
src/acmap/mod.rs: public API and sharding logicsrc/acmap/messages.rs: actor message definitionssrc/acmap/shard.rs: shard actor runtime loopexamples/benchmark.rs: benchmark-like demo
License
This project is licensed under the MIT License.