I asked a question a while ago, which has some similar themes to your question. You might find some of the answers I got to be useful.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Optimizing iteration over slices of multiple matrices | 14 | 1986 | December 30, 2018 | |
| Matrix-by-(slice of)vector multiplication with limited allocation | 6 | 857 | September 11, 2020 | |
| Convert a 3D Array to 2D array of vectors | 7 | 1353 | August 4, 2021 | |
| Recent developments in StaticArrays.jl land | 12 | 3797 | March 11, 2021 | |
| Performance of Matrix{T} vs Vector{Vector{T}} | 14 | 768 | June 8, 2023 |