JuliaLang/julia — pull request #5104 by simonster (2013-12-11 04:17:42+00:00)
Title: Better type inference in SubArray construction

On my machine gives a >50x speedup on the code from #5100. The special case for linear indexing is still ~50% faster than the new code for n-dimensional SubArrays, so I left it in.