You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Profiling Rasters.jl with the NCDatasets.jl backend I noticed getindex in DiskArrays.jl is a large fraction of inference, the two large columns to the right and a lot of the area around them here:
It could be good to profile the first-run type inference and look at how to simplify it.
The text was updated successfully, but these errors were encountered:
Ugg not exactly it was Rasters.jl on main and its on a rebase branch of your NCDatasets.jl fork but just using your branch and DiskArrays 0.4 should be enough.
Heres a demo without Rasters but recreating a Rasters like workload:
using NCDatasets, ProfileView, SnoopCompile
ncfile ="tos_O1_2001-2002.nc"# download("https://www.unidata.ucar.edu/software/netcdf/examples/$ncfile")# @time Array(NCDatasets.Dataset(ncfile)[:tos].var .* 100)# 2.202080 seconds (4.64 M allocations: 321.724 MiB, 3.73% gc time, 99.69% compilation time)# Profile compilation@profview1+1# warmup for ProfileView@profviewArray(NCDatasets.Dataset(ncfile)[:tos].var .*100)
# Snoop compiation# Restart julia and don't run the profview above
tinf =@snoopi_deepArray(NCDatasets.Dataset(ncfile)[:tos].var .*100);
fg =flamegraph(tinf)
ProfileView.view(fg)
Profiling Rasters.jl with the NCDatasets.jl backend I noticed
getindex
inDiskArrays.jl
is a large fraction of inference, the two large columns to the right and a lot of the area around them here:It could be good to profile the first-run type inference and look at how to simplify it.
The text was updated successfully, but these errors were encountered: