Re:Rust: Dropping heavy things in another thread can make yo...
by zozbot234 on Saturday May 30, 2020 @02:06PM
(#23363215)
> One problem with this approach was that you still had to wait for these threads when the application would shut down.
If you know that an object will live for the rest of the program and not need any finalization logic, Rust allows you to "leak" it and save that overhead on shutdown.
If you know that an object will live for the rest of the program and not need any finalization logic, Rust allows you to "leak" it and save that overhead on shutdown.