html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,performed_via_github_app,issue https://github.com/pydata/xarray/pull/6353#issuecomment-1068703649,https://api.github.com/repos/pydata/xarray/issues/6353,1068703649,IC_kwDOAMm_X84_sx-h,2448579,2022-03-16T03:52:49Z,2022-03-16T03:52:49Z,MEMBER,"@mathause I suspect `coarsen.construct` is faster because it's a simple reshape (ignoring the copies associated with handling the boundary condition): https://github.com/pydata/xarray/blob/95bb9ae4233c16639682a532c14b26a3ea2728f3/xarray/core/variable.py#L2373 Unstacking allocates a new array and then assigns all values. It is definitely the more general solution though. We should discuss this in the proposed cookbook (https://github.com/pydata/xarray/issues/1790)","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1167962844