Hopefully Jeff will chime in (or someone else with the required expertise), but 
I’ve heard Jeff warn against splatting tuples lots of times.

 — John

On Jan 4, 2014, at 4:44 PM, Milan Bouchet-Valat <[email protected]> wrote:

> Hi!
> 
> I'd like propose you a small game about performance. In the following gist, I 
> provide three very similar short functions; the first one allocates much more 
> memory and is much slower than the two others. Can someone find an 
> explanation? ;-)
> 
> https://gist.github.com/nalimilan/8261056
> 
> The real-world scenario is again building a frequency table. I discovered 
> that when doing a = zeros(Int, dims) I really had to make dim a tuple rather 
> than an array, which forces me to use two versions of the same data, one in 
> each type
> 
> Thanks for the help!

Reply via email to