2 ms·
> For all non-trivial allocation/deallocation patterns, Rust also uses a runtime reference-counting GC... Lest anyone read this and think it's true, it's not.
by thenewwazoo 6y ago
> For all non-trivial allocation/deallocation patterns, Rust also uses a runtime reference-counting GC...
Lest anyone read this and think it's true, it's not. Using Rc is a design choice, and not one that is a given. I have written tens of thousands of lines of Rust code doing very heavy data processing and used Rc only a handful of times. In fact, I find using Rc without a very good reason to usually be a bad idea that enables lazy thinking.
- pjmlp 6y agoI on the other hand have used Rc quite a lot, it is either that or having to twist the application architecture to somehow fit into Gtk-rs expectations.