[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Computation time for newcommer
From: |
c. |
Subject: |
Re: Computation time for newcommer |
Date: |
Sun, 30 Sep 2012 07:47:24 +0200 |
On 29 Sep 2012, at 23:49, Joza wrote:
> 1) Using vectors instead of for loops is faster, as it uses the vector math
> optimizations of the processor?
yes, it is faster, but no, not for that reason.
the real reason is that when loops are used the
code in the loop has to be interpreted at each
iteration which adds a big overhead to the computation.
c.