Ah, I was under the impression that using array OPs inside a numba njit gave worse performance. Has this changed, or is my memory tricking me?
Do you have a source for this? I have not seen it in the numba docs.
Do you have a source for this? I have not seen it in the numba docs.
If you want to look at the sort of things compilers do though, take a look at “common subexpression elimination”