Does pants have a way to surface a startup perform...
# random
j
Does pants have a way to surface a startup performance metric?
a
i believe running
./pants -x
will show a time for the
[setup]
and
[parse]
phases which i think is what is most relevant
also
./pants server
will have those stored as well
[parse]
refers to parsing BUILD files
h
I've personally spent some time trying to improve the immediate command-line latency you notice when you just run any pants command
🐎 2
h
One of our biggest priorities is to enable the pants daemon (Pantsd) by default. It greatly improves no-op performance. Cc @witty-crayon-22786 who is leading this initiative
w
Yep.
I view the "cold builds are important so we won't do anything to make warm builds faster" argument of ninja to be a bit lazy. That's not a good reason not to have a daemon.
It also completely precludes caching: you can't use file timestamps for anything beyond "on my machine is this up to date"... You need digests for anything more interesting
👍 1
a
the author repeated multiple times they didn’t really have time for the project which is kinda sad
😢 1
i agree on the cold/warm bit. imho the fastest possible cold build and the fastest possible warm build feel very similar in spirit
w
@jolly-midnight-72759: but, yes: we have lots of good data sources for runtime data. A realistic target for the next few weeks is 400ms noops.
🔥 2
a
and if you use a shared memory region you can even take advantage of keeping things resident in memory without needing a persistent process. just a thought i’ve been having recently