what is the quickest way to iterate through a numpy array
<p>I noticed a meaningful difference between iterating through a numpy array "directly" versus iterating through via the <code>tolist</code> method.  See timing below:</p>

<p><strong><em>directly</em></strong><br>
<code>[i for i in np.arange(10000000)]</code><br>
<strong><em>via <code>tolist</code></em></strong><br>
<code>[i for i in np.arange(10000000).tolist()]</code>  </p>

<p><a href="https://i.stack.imgur.com/O7YXR.png" rel="noreferrer"><img src="https://i.stack.imgur.com/O7YXR.png" alt="enter image description here"></a></p>

<hr>

<p>considering I've discovered one way to go faster.  I wanted to ask what else might make it go faster?</p>

<p><strong><em>what is fastest way to iterate through a numpy array?</em></strong>  </p>