Timeseries Optimization : Reducing allocations

This statement allocates a copy of that subset of timeseries, which explains at least some of your allocation issues. Try @view timeseries[1:i] to create a lightweight view instead, and see Performance Tips · The Julia Language for more info.

4 Likes