diff --git a/_drafts/understanding-allocations-in-rust.md b/_drafts/understanding-allocations-in-rust.md index b552015..4968868 100644 --- a/_drafts/understanding-allocations-in-rust.md +++ b/_drafts/understanding-allocations-in-rust.md @@ -567,6 +567,9 @@ Questions: 4. Other pointer types? Do Rc<>/Arc<> force heap allocation? - Maybe? Part of the alloc crate, but should use qadapt to check 5. How many allocations happen before `main()` is called? +6. How can you use the heap well? + - Know when collections resizing happens + - Use `Borrow` to abstract over Pointer/Box/Rc/Arc/CoW # Compiler Optimizations Make Everything Complicated