From daa441cc97f46cc1604cdda3adca853f82b4764b Mon Sep 17 00:00:00 2001 From: Bradlee Speice Date: Thu, 24 Jan 2019 22:48:48 -0500 Subject: [PATCH] Note on how I want to structure the heap section --- _drafts/understanding-allocations-in-rust.md | 3 +++ 1 file changed, 3 insertions(+) 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