|
|
|
|
|
by molticrystal
1831 days ago
|
|
You can print out the assembly it generated with code_native [0] and check if it is seems there are superfluous instructions. To really tune things you'd have to check the instruction timings among other things[1] for your processor and to be fair apply the equivalent setting for your compiler back end as well if it supports tuning for your processor and anything else applicable. While it is likely there is a possibility for improvement, like most optimization work, it is usually for diminishing returns for your time and may be small in nature, but sometimes compilers, even those like llvm, do something strange, so you never know for sure unless you check. [0] https://docs.julialang.org/en/v1/stdlib/InteractiveUtils/#In... [1] https://www.agner.org/optimize/ |
|