disaggregate
allocates for Union eltypes
using Rasters
r = Raster(rand(X(1:1000), Y(1:1000)))
r2 = replace_missing(r)
@time disaggregate(r, 2)
@time disaggregate(r2, 2)
Timings (after compilation):
0.049012 seconds (28 allocations: 30.519 MiB)
1.054906 seconds (4.00 M allocations: 141.149 MiB, 5.11% gc time)
Profile:
