Hello colleague,
On Friday, July 29, 2016 at 8:59:36 AM UTC+2, Juan Lopez wrote:
>
> Hello,
>
> I have a function which is doing basically an operation inside a loop and
> when adding @simd or @inbounds time doesn't improve, in any case it seems
> slightly worse.
>
> Is there an explanation f
It is likely because the ranges are not UnitRanges.
On Friday, July 29, 2016 at 5:35:57 AM UTC-4, Andreas Lobinger wrote:
>
> Hello colleague,
>
> On Friday, July 29, 2016 at 8:59:36 AM UTC+2, Juan Lopez wrote:
>>
>> Hello,
>>
>> I have a function which is doing basically an operation inside a loo
A great tool to figuring out what is going on in these cases is
`@code_llvm`. It shows you a representation of your code that is still
readable, but very close to the machine.
Your simple julia code without a `@simd` is nearly optimal, but does
benefits from the inclusion of `@inbounds`
-