counting-pointer 0.1.0

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.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
# counting-pointer

`counting-pointer` provides structs `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.
- `Sc` and `Asc` takes `GlobalAlloc` type as a template parameter.

It is difficult for `Rc` and `Arc` to achieve both good performance and small memory usage at
the same time. This crate gives up supporting weak reference to do it.

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