4 ms·
I starting using rust recently and I noticed my programs tend to use the techniques described in this article. Using an "object" pool that is responsible for th
by sacado2 8y ago
I starting using rust recently and I noticed my programs tend to use the techniques described in this article. Using an "object" pool that is responsible for the creation / management / destruction of values and their referencing is a good way to reason about lifetimes when you need to manage DAGs or graphs (where reference ownerships and lifecycles are hard to reason about).