#rc #arc #reference-count

counting-pointer

Provides structs of reference counting pointers. The perforance is better than ‘std::rc::Rc’ and than ‘std::sync::Arc’ by counting only the strong references but not weak the references.

2 unstable releases

0.2.0 Feb 19, 2021
0.1.0 Jan 24, 2021

#20 in #arc

21 downloads per month

LGPL-3.0-or-later OR Apache-2.0 OR BSD-2-Clause

1MB
871 lines

counting-pointer

counting-pointer provides struct Sc and Asc . They behave like std::rc::Rc and std::sync::Arc except for the followings.

  • Sc and Asc treats only strong reference but not weak reference for the performance.
  • Sc and Asc takes GlobalAlloc type as a template parameter.

License: LGPL-3.0-or-later OR Apache-2.0 OR BSD-2-Clause


lib.rs:

counting-pointer provides struct Sc and Asc . They behave like std::rc::Rc and std::sync::Arc except for the followings.

  • Sc and Asc treats only strong reference but not weak reference for the performance.
  • Sc and Asc takes GlobalAlloc type as a template parameter.

No runtime deps