From b41fa3a279771ea9dd76fc8f49105e9b9bafca12 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 8 Sep 2026 02:14:33 +0000 Subject: [PATCH] smoke profile: PYAUTO_FAST_PLOTS=1, as the autolens/autogalaxy profiles set MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit imaging_ci/modeling/start_here.py is the slowest smoke script on the Heart board (89.5s py3.13 / 61.0s py3.12, 68% of its leg, run 33792233410). Profiled locally under this profile with the libraries from source: the bypassed fit itself is cheap; the time is (a) a per-pixel Python loop in PyAutoArray's over-sampled grid builder, run for a border relocator the CTI fit never uses (~50s of 117s local — fixed in PyAutoArray on the same branch name), and (b) the ~100 on-the-fly figures per run: ~17s of matplotlib rasterisation + PNG writes and ~20-40s of mask-edge overlay derivation on the 2000x100 frame. This flag drops each figure before it is drawn or saved (every plot call still runs — the extraction, zoom and subplot layout are exercised), and with the PyAutoArray branch it also skips the overlay derivation. Measured cold (dataset simulated inside the run), same machine: baseline 117.3s PyAutoArray fix only 58.5s PyAutoArray fix + this profile 25.9s (warm, dataset present: 15.9s) Found and measured by PyAutoBrain `hygiene ci` + /ci_speedup. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_015J8ZLmc55ZT1nSRntZMz9K --- config/build/profile_smoke.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config/build/profile_smoke.yaml b/config/build/profile_smoke.yaml index b948b60..9723e46 100644 --- a/config/build/profile_smoke.yaml +++ b/config/build/profile_smoke.yaml @@ -10,6 +10,14 @@ defaults: PYAUTO_TEST_MODE: "2" PYAUTO_SKIP_WORKSPACE_VERSION_CHECK: "1" + # Drop every figure before it is rasterised or saved, as the autolens / + # autogalaxy smoke profiles do. The bypassed fit still exercises every plot + # call (the data/model extraction, the zoom, the subplot layout) — only the + # matplotlib draw + PNG write and the mask-edge overlay are skipped. Measured + # locally on imaging_ci/modeling/start_here.py (PyAutoBrain /ci_speedup, + # 2026-09-08): ~17s of image rasterisation + ~20-40s of per-figure mask-edge + # derivation on the 2000x100 frame, across ~100 on-the-fly figures per run. + PYAUTO_FAST_PLOTS: "1" MPLBACKEND: "Agg" NUMBA_CACHE_DIR: "/tmp/numba_cache" MPLCONFIGDIR: "/tmp/matplotlib"