I have the following code which is giving me a much better performance

const size=5000000;
const times=3;
function f()
  global size;
  global times;
  a=fill(3,size);
  b=fill(0,size);

  for j=1:times::Int64
    t=@elapsed for i=1:size::Int64
      b[i]=a[i]
    end
    println(t)
  end
end


However, the same code when I tried to run in my original codebase is not
leading to performance improvement.
I have updated the code and will try to find out what could be the problem.

ᐧ

Thanks !

Kapil Agarwal

Reply via email to