title: C array = array faster than memcpy()
body: <p>I have a piece of C code which I am trying to optimise which involves setting an array a to b. I am currently using memcpy to achieve this, and it works, however it's not fast enough. I.e.</p>
  
  <pre><code>double a[4] = {1.0, 2.0, 3.0, 4.0};
  double b[4];
  memcpy(b, a, sizeof(a));
  </code></pre>
  
  <p>This is a basic example, my program is similar but uses up to 9000 doubles. I know that the use of pointers can save a lot of time, but I'm not sure how to do it. You're help is greatly appreciated.</p>
  
  <p>EDIT: I don't need to keep the a array, that can be discarded. I just need to transfer from a to b.</p>