Bucket each cache entry into 5°×5° spatial chunks matching the layout used by Weather.GridCache. fetch_bounds/3 now walks only the chunks intersecting the viewport instead of the full 92k-cell CONUS map; a typical zoomed viewport hits ~1500 cells per chunk × the chunks the viewport overlaps instead of scanning all 92k. Public API and observable behavior unchanged. Add cross-chunk-boundary regression tests so future refactors can't silently flatten the layout. |
||
|---|---|---|
| .. | ||
| microwaveprop | ||
| microwaveprop_web | ||
| mix/tasks | ||
| microwaveprop.ex | ||
| microwaveprop_web.ex | ||