Hey all-- I’m upgrading my repo from `2.14` to `2....
# general
a
Hey all-- I’m upgrading my repo from
2.14
to
2.16
and noticed that launching
pantsd
is taking much longer than it used to (about 10 seconds). Running the command
./pants -ltrace --no-pantsd
reveals a big increase in the number of iterations of
rule_graph monomorphize
. v2.14
Copy code
rule_graph monomorphize: iteration 38000: live: 8131, minimal: 7117, to_visit: 127, total: 30559
v2.16
Copy code
rule_graph monomorphize: iteration 598000: live: 100589, minimal: 98377, to_visit: 246, total: 388764
(output truncated, this is just the last line from the relevant section) Is this change caused by something in my code/config or is this in the pants internals? And is there anything I can do to speed it back up?
c
wow, that is a drastic change! is it with the same backends enabled?? I have no clue as to why though…
a
yep, same backends enabled
I tried removing all the additional backends from my config, but that didn’t seem to have any impact.
🫢 1
And FWIW, I cloned the
example-python
pantsbuild repo and see the same behavior.
👍 1
h
cc @witty-crayon-22786
a
At the very least this sounds like unexpected behavior, should I open an issue for it?
c
that’s a good way to preserve the discussion and outcome, yea
w
mm. i expect that this had to do with introducing environments in 2.15. my hope is to simplify that algorithm via #18905 sometime this summer, so i doubt that there any quick fixes, unfortunately.
a
That is unfortunate, but thanks for explanation. I’ll just deal with the slow startup for now, the new features are just too good to wait any longer!