RcLite: The small reference counting solution for Rust

Crates.io Documentation MIT licensed Apache 2 licensed

RcLite is a lightweight reference-counting solution for Rust that serves as an alternative to the standard library's reference-counting. It offers both multi-threaded and single-threaded reference counting options with improved performance and reduced memory overhead, boasting a 75% decrease in memory usage compared to the standard reference counting method. RcLite is a suitable option when weak references are not necessary and optimizing for performance and memory usage is a priority.

Why use RcLite?

Why not use RcLite?

Comparison

| | rclite::Arc | std::sync::Arc | | -------------------------- | :---------: | :------------: | | Overhead in 64-bit systems | 4 bytes | 16 bytes | | Overhead in 32-bit systems | 4 bytes | 8 bytes | | Overhead in 16-bit systems | 2 bytes | 4 bytes | | Weak References | ❌ | ✅ |