Skip to content

perf: multi shared_preloads runtime measurement — 1.14x at hst x 4 exposures#60

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/multi-shared-state-phase-3
Jul 10, 2026
Merged

perf: multi shared_preloads runtime measurement — 1.14x at hst x 4 exposures#60
Jammy2211 merged 1 commit into
mainfrom
feature/multi-shared-state-phase-3

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Summary

Phase 3/4 (autolens_workspace#260): the multi shared_preloads runtime measurement — sibling of likelihood_runtime/datacube/shared_preloads.py.

Headline (recorded in results/runtime/multi/ + OPTIMIZATION_NOTES): 1.14× per-likelihood at hst × 4 identical exposures (unshared 53279.5 ms → shared 46747.4 ms, local CPU fp64, Hilbert-1500 + Delaunay). As the design predicted (PyAutoLens#599 D1): only the mesh geometry is shareable for imaging — the ~12% saved is the per-exposure image-mesh ray-trace + Delaunay triangulation; the primary win is consistency (identical source-pixel grid across exposures).

Also records the re-run trap: a crashed JAX run can poison the gitignored lensed_source.fits adapt cache with in-mask NaNs (qhull "Points cannot contain NaN") — delete and regenerate.

Scripts Changed

  • likelihood_runtime/multi/shared_preloads.py (new; ruff clean; AUTOLENS_PROFILING_SMOKE=1 short-circuit)
  • likelihood_runtime/OPTIMIZATION_NOTES.md + results/runtime/multi/shared_preloads_hst_local_cpu_fp64.stdout

Autonomy

--auto safe (gate on issue #260; Heart YELLOW set unchanged from in-session ack).

🤖 Generated with Claude Code

…hst x 4 exposures

Mesh-geometry-only sharing as designed (PyAutoLens#599 D1): the ~12% saving is the
per-exposure image-mesh ray-trace + Delaunay triangulation; consistency (identical
source-pixel grid across exposures) is the primary win. Includes the NaN adapt-cache
re-run trap in OPTIMIZATION_NOTES.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Jammy2211 Jammy2211 added the pending-release Queued for the next release label Jul 10, 2026
@Jammy2211 Jammy2211 merged commit c5229c6 into main Jul 10, 2026
1 check failed
@Jammy2211 Jammy2211 deleted the feature/multi-shared-state-phase-3 branch July 10, 2026 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pending-release Queued for the next release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant