That's a great example for how, in some circumstances, vectorization can be a 
benefit. A nice addition to the conceptual landscape.

--Tim

On Tuesday, August 26, 2014 01:42:59 PM Iain Dunning wrote:
> To muddy the water in this now somewhat confusing email thread:
> devectorizing/avoiding memory allocation isn't always a win:
> 
> http://stackoverflow.com/questions/25412323/how-can-i-do-a-bitwise-or-reduct
> ion-along-an-axis-of-a-boolean-array-in-julia/25414595#25414595
> On Tuesday, August 26, 2014 4:12:49 PM UTC-4, gael....@gmail.com wrote:
> > >I'm a little surprised that you have found the performance implications
> > 
> > unconvincing in discussions where the OGs advocate devectorization.
> > 
> > A 10x speed-up on a 10 ms calculation is generally considered
> > unconvincing. An unknown gain on an unprofiled code for an undefined
> > context is definitely unconvincing, especially if the vectorized form is
> > widely clearer.
> > 
> > I'm not talking about this specific case for which I find explicit loops
> > at least as clear. But I, too, sometimes find the devectorization advice
> > not convincing. But fortunately, this is usually for small scripts, not
> > for
> > actual Julia libs.

Reply via email to