Skip to content

Reducing more memory with MINIMIZE_MEMORY - #632

Merged
jordanflitter merged 2 commits into
mainfrom
mfp-optional
Mar 9, 2026
Merged

Reducing more memory with MINIMIZE_MEMORY#632
jordanflitter merged 2 commits into
mainfrom
mfp-optional

Conversation

@jordanflitter

Copy link
Copy Markdown
Contributor

mean_free_path and kinetic_temperature are allocated and computed only if MINIMIZE_MEMORY=False (these fields are unnecessary for the evaluation of the brightness temperature). This could be useful to @DanielaBreitman.

@jordanflitter jordanflitter added type: performance: memory Performance improvements that reduce memory usage priority: high High priority labels Mar 9, 2026
@codecov

codecov Bot commented Mar 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@47f5599). Learn more about missing BASE report.
⚠️ Report is 208 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #632   +/-   ##
=======================================
  Coverage        ?   88.17%           
=======================================
  Files           ?       32           
  Lines           ?     4744           
  Branches        ?      801           
=======================================
  Hits            ?     4183           
  Misses          ?      401           
  Partials        ?      160           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@jordanflitter jordanflitter changed the title Reducing memory more with MINIMIZE_MEMORY Reducing more memory with MINIMIZE_MEMORY Mar 9, 2026

@steven-murray steven-murray left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this works, but could be made a little faster by moving some of the conditionals outside loops. See #604 for how I did this (but don't take all the logic from that PR)

@steven-murray steven-murray left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I stand corrected -- you have the best implementation here.

@jordanflitter
jordanflitter merged commit 7ed9aed into main Mar 9, 2026
24 checks passed
@jordanflitter
jordanflitter deleted the mfp-optional branch March 9, 2026 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority: high High priority type: performance: memory Performance improvements that reduce memory usage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants