Doing allocations for purpose of checking size of data structure can be expensive.
Current implementation uses a dynamic datastructure, which contains two sets.
arcs: GenericSet::new(),
rcs: GenericSet::new(),
In our use case, computation is too slow, because we count sizes of structures containing large Vectors
Vec<Arc<MyStruct>>>
Each, MyStruct is unique, can be large, Arc is just used to share data between threads, and avoiding copies.
I propose no_context feature, which disables Arc, Rc counting, as that can have performance implications.
Doing allocations for purpose of checking size of data structure can be expensive. Current implementation uses a dynamic datastructure, which contains two sets.
In our use case, computation is too slow, because we count sizes of structures containing large Vectors
Each,
MyStruct
is unique, can be large,Arc
is just used to share data between threads, and avoiding copies.I propose
no_context
feature, which disablesArc
,Rc
counting, as that can have performance implications.