1 unstable release

0.8.0 Jun 7, 2022
0.7.0 Jun 7, 2022

#572 in Memory management

MIT license

26KB
830 lines

Generational reference counting in Rust

An implementation of Vale's generational reference counting memory management model.


lib.rs:

Generational counting

This crate implements Vale's generational reference counting memory management. Intended as an alternative to Rc with slightly different semantics.

Advantages over Rc:

  • Sharing references are Copy and therefore extremely cheap
  • RAII semantics

Disadvantages:

  • Only one owned reference, requiring management
  • Dereferencing returns Option
  • Not Deref

The locking system is non-granular for ease of implementation (and possibly speed.)

Dependencies

~0–6.5MB