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

avoid re-evaluating to know if a package has changed #859

Closed

Conversation

AishwaryaSivaraman
Copy link
Contributor

Summary:
Context: Adding a random file to fbcode/ does some recomputation in the graph that leads to 40s build time in the incremental case.

When fbcode/BUCK is a dep, this is unavoidable since you need to traverse the entire graph to understand if you need to recompute anything. However, in the case of some targets like //aps_models/ads/gmp:launcher_with_publish fbcode/BUCK is not a dep, but since we check for nearby package files for the entire graph, we end up spending more time.

#thanks jakobdegen for helping me figure out what causes additional 35s computation in dice when we add files to fbcode/

Reviewed By: JakobDegen

Differential Revision: D69714496

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 18, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D69714496

AishwaryaSivaraman added a commit to AishwaryaSivaraman/buck2 that referenced this pull request Feb 19, 2025
Summary:

Context: Adding a random file to `fbcode/` does some recomputation in the graph that leads to 40s build time in the incremental case.

When `fbcode/BUCK` is a dep, this is unavoidable since you need to traverse the entire graph to understand if you need to recompute anything. However, in the case of some targets like `//aps_models/ads/gmp:launcher_with_publish` `fbcode/BUCK` is not a dep, but since we check for nearby package files for the entire graph, we end up spending more time.

#thanks jakobdegen for helping me figure out what causes additional 35s computation in dice when we add files to fbcode/

Reviewed By: JakobDegen

Differential Revision: D69714496
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D69714496

Summary:

Context: Adding a random file to `fbcode/` does some recomputation in the graph that leads to 40s build time in the incremental case.

When `fbcode/BUCK` is a dep, this is unavoidable since you need to traverse the entire graph to understand if you need to recompute anything. However, in the case of some targets like `//aps_models/ads/gmp:launcher_with_publish` `fbcode/BUCK` is not a dep, but since we check for nearby package files for the entire graph, we end up spending more time.

#thanks jakobdegen for helping me figure out what causes additional 35s computation in dice when we add files to fbcode/

Reviewed By: JakobDegen

Differential Revision: D69714496
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D69714496

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 28bd815.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants