Skip to content

fix(diff): release graphs from memory as they are completed#988

Merged
ahal merged 1 commit into
taskcluster:mainfrom
ahal:ahal/nlsqzyyymwrn
Jun 12, 2026
Merged

fix(diff): release graphs from memory as they are completed#988
ahal merged 1 commit into
taskcluster:mainfrom
ahal:ahal/nlsqzyyymwrn

Conversation

@ahal

@ahal ahal commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Because the as_completed() call was outside of the with scope, we were waiting for all futures to complete before processing any of them. Also we were storing futures (which contain the full output) in a dict.

This meant we were holding the output of all graph generations in memory simultaneously. In Gecko, this will eat through your available RAM in no time.

@ahal ahal self-assigned this Jun 12, 2026
@ahal ahal requested a review from a team as a code owner June 12, 2026 16:26
@ahal ahal requested a review from hneiva June 12, 2026 16:26

@bhearsum bhearsum left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

oof.

Because the `as_completed()` call was outside of the with scope, we were
waiting for all futures to complete before processing any of them. Also
we were storing futures (which contain the full output) in a dict.

This meant we were holding the output of all graph generations in memory
simultaneously. In Gecko, this will eat through your available RAM in no
time.
@ahal ahal force-pushed the ahal/nlsqzyyymwrn branch from b0c3320 to 084910d Compare June 12, 2026 19:06
@ahal ahal enabled auto-merge (rebase) June 12, 2026 19:06
@ahal ahal merged commit 372cd01 into taskcluster:main Jun 12, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants