I am trying to improve the performance of my code. If I profile (Profile.@profile
), ~40% of the time is spent on getindex
and setindex!
. My code is making extensive use of multidimensional arrays, which I suspect is responsible for this. However, I can’t see (or don’t know how to see) any more detail regarding where in the code these routines are being used most. Any advice on how to approach this would be much appreciated. Thanks.
This means that you are memory bottlenecked. It’s hard to know why without looking at the code, but basically what you want to do is look for places where you are taking more passes over memory than necessary.
1 Like