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

Memoize equality for CoarsenedTarget(s) to avoid exponential runtime in check. (Cherry-pick of #15277) #15278

Merged
merged 1 commit into from
Apr 29, 2022

Conversation

stuhood
Copy link
Member

@stuhood stuhood commented Apr 29, 2022

#15141 gave CoarsenedTarget new usecases, which unfortunately exposed a case where check would re-run in exponential runtime due to not having implemented a TODO about __eq__ using a memoized graph walk.

[ci skip-rust]
[ci skip-build-wheels]

…e in `check`. (pantsbuild#15277)

pantsbuild#15141 gave `CoarsenedTarget` new usecases, which unfortunately exposed a case where `check` would re-run in exponential runtime due to not having implemented a TODO about `__eq__` using a memoized graph walk.

[ci skip-rust]
[ci skip-build-wheels]
@stuhood stuhood added the category:bugfix Bug fixes for released features label Apr 29, 2022
@stuhood stuhood merged commit 617cd4e into pantsbuild:2.11.x Apr 29, 2022
@stuhood stuhood deleted the cherry-pick-15277-to-2.11.x branch April 29, 2022 04:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:bugfix Bug fixes for released features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants