Note on how I want to structure the heap section

case-study-borrow-checker
Bradlee Speice 2019-01-24 22:48:48 -05:00
parent a134b5278b
commit daa441cc97
1 changed files with 3 additions and 0 deletions

View File

@ -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