I just decided to migrate from Python+Fortran to Julia as Julia was faster in my test

FYI @inbounds should go inside of closure-creating macros like @threads and @spawn (like leandromartinez98’s eval_exp_tweaked_4_parallel). Ref: What is the cause of this performance difference between Julia and Cython? - #4 by tkf

(Personally, I believe @inbounds scope should be as small as possible in general. Putting it outside a macro call is especially worrisome as you usually don’t know what code the macro will generates.)

6 Likes