Commit 71ce918
committed
Tighten viewshed Tier B memory estimate and avoid needless copy
The dask Tier B memory guard underestimated peak usage at 280 bytes/pixel.
Actual peak during lexsort reaches ~360 bytes/pixel (sorted + unsorted
event_list coexist) plus 8 bytes/pixel for the computed raster. Updated
estimate to 368 bytes/pixel to prevent borderline OOM.
Also use astype(copy=False) to skip the float64 copy when data is already
float64.1 parent 1920f9a commit 71ce918
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1560 | 1560 | | |
1561 | 1561 | | |
1562 | 1562 | | |
1563 | | - | |
| 1563 | + | |
1564 | 1564 | | |
1565 | 1565 | | |
1566 | 1566 | | |
| |||
2167 | 2167 | | |
2168 | 2168 | | |
2169 | 2169 | | |
2170 | | - | |
| 2170 | + | |
| 2171 | + | |
| 2172 | + | |
2171 | 2173 | | |
2172 | 2174 | | |
2173 | 2175 | | |
| |||
0 commit comments