-
-
Notifications
You must be signed in to change notification settings - Fork 674
Description
Transferring from slack thread https://pantsbuild.slack.com/archives/C0D7TNJHL/p1761162382770779
Attempting to build a large graph of 163,375 targets results in pants memory growth and "unbounded" execution time. The source repository is at https://github.com/NVIDIA/Dependency-Patterns/tree/main/scaling and the command to run it is pants run :go.
I was seeing this performance issue with 2.28.0 running on Linux accessing the files via NFS. Benjy was able to reproduce it running on macOS with local storage (not sure which pants version he was using).
Some internal profiling shows lots of time spent waiting on the GIL. We have not done any stack inspections to see if, for example, transitive dependency traversal is doing redundant work for nodes deep in the graph. Our next experiment is going to be to try it against a BuildBarn remote execution farm to see if offloading it makes much difference.
As a point of comparison Bazel is able to do the build in 9-10 minutes.