Hi Kristoffer,
yes, the return type is stable because I explicitly declared weights as
Array{T,N}. With order being a 1D array it needs to be "converted" to a
tuple to initialize the weights array and I don't see too many ways of
doing this. The problem seems to be present is the following
function test{S}(order::Array{S,1})
h = (order...)
end
@code_warntype test([1,2,3])
so perhaps the type instability to within the julia code that does the
splatting to create the tuple.
Regarding my use of strings and parsing them, I realize that it is not so
elegant, but does it impact performance?
Thanks,
Richard