Note on how I want to structure the heap section

This commit is contained in:
Bradlee Speice 2019-01-24 22:48:48 -05:00
parent a134b5278b
commit daa441cc97

View File

@ -567,6 +567,9 @@ Questions:
4. Other pointer types? Do Rc<>/Arc<> force heap allocation? 4. Other pointer types? Do Rc<>/Arc<> force heap allocation?
- Maybe? Part of the alloc crate, but should use qadapt to check - Maybe? Part of the alloc crate, but should use qadapt to check
5. How many allocations happen before `main()` is called? 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 # Compiler Optimizations Make Everything Complicated