Re:Rust Sucks If I Fail to Write X
by tyoverby on Friday February 17, 2017 @01:42PM
(#13670610)
(2) is why I'm so happy for Gc<T>.
Also, if my graph is going to be short-lived, I've had success just allocing up an Arena<T>, making as many cycles as I want, and then collecting the whole thing at once after my computation is done.
Also, if my graph is going to be short-lived, I've had success just allocing up an Arena<T>, making as many cycles as I want, and then collecting the whole thing at once after my computation is done.
https://github.com/Manishearth/rust-gc