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

Fix explosive memory use of inefficient _process_dependencies() #307

Conversation

brentleyjones
Copy link
Contributor

@brentleyjones brentleyjones commented Apr 16, 2022

Fixes #306.

This is why depset exists.

@brentleyjones brentleyjones force-pushed the bj/fix-explosive-memory-use-of-inefficient-_process_dependencies branch from 2155d8a to b9275fb Compare April 16, 2022 02:05
This is why `depset` exists.

This also fixes the extra configured targets in `//examples/command_line` for some reason 🤷‍♂️.
@brentleyjones brentleyjones force-pushed the bj/fix-explosive-memory-use-of-inefficient-_process_dependencies branch from b9275fb to 3e88d79 Compare April 16, 2022 02:06
@brentleyjones brentleyjones enabled auto-merge (squash) April 16, 2022 02:07
Copy link
Contributor

@jpsim jpsim left a comment

Choose a reason for hiding this comment

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

Change makes sense and the large project from #306 now generates in 11 seconds.

@brentleyjones brentleyjones merged commit 2042d72 into main Apr 16, 2022
@brentleyjones brentleyjones deleted the bj/fix-explosive-memory-use-of-inefficient-_process_dependencies branch April 16, 2022 02:22
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.

Bug: bazel running out of memory and crashing on a large project
2 participants