I have a mutable type called `Data`

```
mutable struct Data
data_a::Vector{Int64}
data_b::Vector{Int64}
end
```

I get two vectors that are of type `Vector{Float64}`

from a solution of an ODE and want to construct the type `Data`

field’s being the two vectors.

I am using a function to do so something like this

```
function store_vectors!(input::Data, solution)
times = 0.0:0.01:10.0
states = solution(times)
input.data_a = [state[1] for state in states]
input.data_b = [state[2] for state in states]
end
```

The ODE used `StaticArrays.jl`

to improve the performance which is working as intended but as soon as I store the vectors in `Data`

the allocations jump considerably and I feel like there is a way to decrease the allocations.

Any thoughts/ideas as to ways to improve this?

I was initially thinking to initialise the type `Data`

with a fixed size `Vector`

and then assigning data to it.