Closed Others closed 4 years ago
Resolves #36
@jrmuizel you opened that issue--is this the sort of API/performance characteristics you were looking for?
I'm beginning to get concerned about all the complexity in collector/mod.rs
(especially the collect
method). That will need cleaned up at some point.
The API looks good to me.
Adds Atomic support to shredder! The atomic operations should be fairly fast, but obviously need to do some Gc related book keeping. Also they block if collection is happening, which may be inevitible. Perhaps we could lift this limitation for reads?
I think this is the right design--I've thought a lot about other ways to do this and this was the only fruitful one.
Still missing docs and tests, but wanted to put this up to solicit feedback.