-
-
Notifications
You must be signed in to change notification settings - Fork 634
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run more rules concurrently when building a pex (#20988)
This refactors the setup rules invoked to build a pex to run concurrently where they can. This probably doesn't make too much difference in the common case at the moment, since these seem to currently run very fast (for the single sample I did, of running `pants --no-local-cache test src/python/pants/backend/python/util_rules/pex_test.py`), but: - being concurrent seems better than being unnecessarily sequential - I'm planning to make `_setup_pex_requirements` start invoking external processes (`pex3 lock export-subset`) for #15694, which'll make it much more expensive. There's a few moving parts across separate individually-sensible commits. This includes switching to use call-by-name syntax as a bit of an experiment. I've labelled this as https://github.com/pantsbuild/pants/labels/category%3Ainternal, not https://github.com/pantsbuild/pants/labels/category%3Aperformance, because it doesn't seem like it has much impact at the moment.
- Loading branch information
Showing
2 changed files
with
40 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters