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!
