Daily Shaarli

All links of one day in a single page.

May 30, 2020

Rust: Dropping heavy things in another thread can make your code 10000 times faster

Gc like langage with rust

fn get_size(a: HeavyThing) -> usize {
    let size = a.size();
    std::thread::spawn(move || drop(a));
    size
}