Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

De-vendor pex just once per version. #833

Merged
merged 3 commits into from
Dec 27, 2019
Merged

Conversation

jsirois
Copy link
Member

@jsirois jsirois commented Dec 26, 2019

Previously we would de-vendor pex once per CLI invocation in a new
temporary directory. Now we de-vendor once per pex version under the
pex root (~/.pex/isolated/...) by leveraging existing hashing and atomic
directory creation tools.

Previously we would de-vendor pex once per CLI invocation in a new
temporary directory. Now we de-vendor once per pex version under the
pex root (~/.pex/isolated/...) by leveraging existing hashing and atomic
directory creation tools.
Copy link
Contributor

@Eric-Arellano Eric-Arellano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. Do you know if this results in a performance bump and by how much?

@jsirois
Copy link
Member Author

jsirois commented Dec 27, 2019

Do you know if this results in a performance bump and by how much?

This results in a nominal performance decrease but it's in the wash - O(10ms) slower on non-spinning disk. The speed win will come when the content hash of the pex distribution is stored in a metadata file in the release.

@jsirois jsirois merged commit b051279 into pex-tool:master Dec 27, 2019
@jsirois jsirois deleted the de-vendor/less branch December 27, 2019 17:34
@jsirois jsirois mentioned this pull request Dec 28, 2019
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants