3 ms·
On a related note, Rust's Cow (copy on write) type is great for managing a large area of allocated memory where many threads are reading and only a few threads
by queuebert 6y ago
On a related note, Rust's Cow (copy on write) type is great for managing a large area of allocated memory where many threads are reading and only a few threads write. You can dole out pointers like candy without worrying about race conditions, because the moment they are written to a new allocation is created and the pointer moved.