alright!
did the @inbounds and @simd and benchmarked again 
(for different light source position, thats why numbers dont match exactly 
with the ones above)

cython original code:   27.5 s
julia original code:    28.3 s

julia with @inbounds:   21.3 s

julia 
with @inbounds & @simd: 19.0 s

Looks like a nice speed up to me! :)
I ll look into the column-major issue later.

Thanks for the input guys!





On Thursday, November 27, 2014 3:17:28 AM UTC-5, Ariel Keselman wrote:
>
> in the Cython code you turned off bounds checking. This can be done for 
> Julia with the @inbounds macro. Just use it in your loops like this:
>
> @inbounds for i in whatever
> ...
> end
>
> also @simd may help, sems you can use it in a couple of the innrmost 
> loops. It sems also simple to parallelize with a shared array and a 
> @parallel for
>

Reply via email to