Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove memoization of the Paths intrinsic to reduce memory usage (Cherry-pick of #19689) #19716

Merged
merged 1 commit into from
Aug 30, 2023

Conversation

WorkerPants
Copy link
Member

Remove memoization of the Paths intrinsic, since it is very memory intensive, and relatively cheap to recompute from its memoized inputs.

Improves performance for pants dependencies :: in the Pants repo by 6%, and eliminates the paths Node line item mentioned on #19053, since it will no longer be held in memory by memoization.

Fixes #19053.

…19689)

Remove memoization of the `Paths` intrinsic, since it is very memory
intensive, and relatively cheap to recompute from its memoized inputs.

Improves performance for `pants dependencies ::` in the Pants repo by
6%, and eliminates the `paths` Node line item mentioned on #19053, since
it will no longer be held in memory by memoization.

Fixes #19053.
@stuhood stuhood merged commit 68b5b42 into 2.18.x Aug 30, 2023
@stuhood stuhood deleted the cherry-pick-19689-to-2.18.x branch August 30, 2023 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants