Thank you all for your comments so far, they mostly align with the way I've 
been thinking about this.

Mauro, I do not quite understand what you're saying about densely packed 
arrays, could you explain a bit more?

Thanks,
Chris

On Tuesday, March 3, 2015 at 11:41:53 AM UTC-5, Mauro wrote:
>
> > I believe if all your type fields are concrete (which they are in the 
> case 
> > of Float64), the performance should be the same as using 
> Vector{Float64}. 
> > This is really nice since you get to use code that is much more 
> > understandable like state.x instead of state[1] for no penalty. 
>
> I think to get densely packed array the type needs to be immutable: 
>
> immutable StateVec 
>     x::Float64 
>     y::Float64 
>     z::Float64 
> end 
>
> Otherwise it will be an array of pointers. 
>

Reply via email to