Skip to content

Performance optimization for thermal calculations - #215

Open
Randl wants to merge 3 commits into
Caltech-IPAC:mainfrom
Randl:main
Open

Randl wants to merge 3 commits into
Caltech-IPAC:mainfrom
Randl:main

Conversation

@Randl

@Randl Randl commented Nov 11, 2026

Copy link
Copy Markdown

A set of performance optimizations:

  1. Skip temperature calculations for invisible facets
  2. Precompute wavelength-dependent blackbody terms
  3. Replace FRM inverse trigonometry with equivalent square-root arithmetic

Total speedup on microbenchmarks ranges from ~10% for NEATM with WISE correction (23.07 µs -> 18.12 µs) to 65% (almost 3x, 68.00 µs -> 23.82 µs) for FRM without color correction

@annie444 annie444 added the enhancement New feature or request label Dec 3, 2026
@annie444

annie444 commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

I greatly appreciate your PR! However, I should inform you that if you're making these modifications for the kete python package from pypi.org, that development has moved to dahlend/kete.

Regardless, we'll run some regression tests here and send you our feedback!

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants