hypercounter

Crates.iohypercounter
lib.rshypercounter
version0.4.3
created_at2025-11-11 05:09:08.835878+00
updated_at2025-11-27 03:27:02.737272+00
descriptionAn atomic, lock-free, hash map-like counter structure.
homepage
repositoryhttps://github.com/Nekidev/hypercounter
max_upload_size
id1926715
size38,508
Rafael Bradley (Nekidev)

documentation

README

HyperCounter

An atomic, lock-free, hash map-like counter structure.

Example

use std::sync::atomic::{AtomicUsize, Ordering};
use hypercounter::HyperCounter;

let counter: HyperCounter<String, AtomicUsize> = HyperCounter::new();

counter.fetch_add("example_key".to_string(), 1, Ordering::Relaxed);
counter.fetch_sub("example_key".to_string(), 1, Ordering::Relaxed);

Documentation

To read the full documentation, visit docs.rs/hypercounter.

Commit count: 0

cargo fmt