I was just being cheeky ! Removing the
@inbounds
macros impacts performance but not as much as you might think. Particularly if you remove all but the one inside the double loop. Delete out the embedded LLVM IR and the performance will take a nose dive! Try it and you will see that there is more going on there than you may think as both const
declarations are necessary for this to work.
1 Like