Skip to content

Understanding pex lock sync #2565

Answered by jsirois
benjyw asked this question in Q&A
Oct 23, 2024 · 3 comments · 10 replies
Discussion options

You must be logged in to vote

I run a second time with the exact same command line. It takes 15 seconds again

and

And so on - what seem like small incremental updates or deletions appear to trigger basically a full resolve every time.

Exactly, That is "expected"! Every lock subcommand (create, update, sync) currently performs a complete fresh lock from scratch. The only difference is that update and sync apply constraints based on a prior lock. The pex3 lock {update,sync} commands get you incremental lock updates. They have 0 to do with speed of locking.

For speed, see #2044, but that bug was filed at least 6 months after discussion about this in Pants forums. It has been "well-known" for a long time now that the o…

Replies: 3 comments 10 replies

Comment options

You must be logged in to vote
6 replies
@benjyw
Comment options

benjyw Oct 23, 2024
Maintainer Author

@jsirois
Comment options

@benjyw
Comment options

benjyw Oct 23, 2024
Maintainer Author

@jsirois
Comment options

@jsirois
Comment options

Answer selected by jsirois
Comment options

You must be logged in to vote
0 replies
Comment options

benjyw
Oct 23, 2024
Maintainer Author

You must be logged in to vote
4 replies
@jsirois
Comment options

@benjyw
Comment options

benjyw Oct 23, 2024
Maintainer Author

@jsirois
Comment options

@benjyw
Comment options

benjyw Oct 25, 2024
Maintainer Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants