Others / shredder

Garbage collected smart pointers for Rust
MIT License
266 stars 9 forks source link

Weak pointers #63

Open alekratz opened 3 years ago

alekratz commented 3 years ago

I have a use-case where it would be useful to have a weak pointer to a Gc pointer (basically, a cache of Gc'd items). I don't think it would be too difficult to implement. Thoughts?

Others commented 3 years ago

The issue here is the potential performance overhead/collector complexity. I have thought about this a bit, but I'm punting on deciding whether to implement this until the next time I work on the collection logic