Is there a way to speed up this code?

Hello @Luis_Manuel_Espinoza ,

You would make it easier for anybody willing to help if you would take a look at the following guidelines and provide a nicer code formatting.

One quick improvement can be the removal of allocations associated with: coords[i, :] = [parse(Float64, d) for d in data[2:4]] line.

A potential replacement is this:

for ii in 1:3
    coords[i, ii] = parse(Float64, data[ii+1])
end 
2 Likes