Fair point. I suppose it is a bit optimistic, at this point, to expect the 
compiler to perform the necessary temporary removal / stream fusion.

On Monday, August 4, 2014 4:53:50 PM UTC-5, Tim Holy wrote:
>
> I suspect the main reason for the loop rather than map is simply to avoid 
> the 
> need to allocate a temporary. Since loops are fast in Julia, there is no 
> downside to working element-by-element. 
>
>

Reply via email to