Avoiding Allocations
JuliaCon 2020 Avoiding Allocations lecture
Avoiding Allocations
I found quite interesting this talk at the JuliaCon 2020 so I made a quick compilation of it below.
Tips & tricks:
-
Use StaticArrays.
- SArray (less than 14x14, Stack-allocated)
- MArray (less than 14x14, Heap-allocated)
- SizedArray (any size, wrapper around Array).
- Use Function Barriers.
- Use Vectors of Arrays rather than increasing dimension and doing slicing.