I think we are getting to the bottom of @sotosoul’s performance issue with Zarr here: Extremly slow write to S3 bucket with xarray.Dataset.to_zarr - #31 by rabernat
The good news is that there is a fix already in the works in Xarray: Add initialize_zarr by dcherian · Pull Request #8460 · pydata/xarray · GitHub