I have a struct like so:
struct rpoint
pn::Int64 #patch number
xyz::Vector{Float64} #coordinates
end
Note: the xyz field will always be populated with a vector of size 3. I have two questions:
- Is it true that not specifying the size of the vector can lead to sub-par performance? When I profiled my code, I got a bunch of red “runtime-dispatch” flags, which I’m trying to track down. Can the above cause it?
- How would I specify the size of the vector in the struct?