Skip to content

Memoize filesystem operations during unpack #5

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

Merged
merged 1 commit into from
Feb 3, 2025
Merged

Conversation

charliermarsh
Copy link
Member

Summary

The dst is the same throughout the life of the unpack, and we canonicalize it before unpacking. So we can avoid re-validating and re-canonicalizing for every single archive entry.

For a large PyTorch wheel, this improves performance by about 12.5%.

@charliermarsh charliermarsh merged commit b1e6022 into main Feb 3, 2025
charliermarsh added a commit to astral-sh/uv that referenced this pull request Feb 3, 2025
## Summary

I shipped one security fix here along with several significant
performance improvements for large TAR files:

- astral-sh/tokio-tar#2
- astral-sh/tokio-tar#4
- astral-sh/tokio-tar#5

I also PR'd the security fix to `edera-dev`
(edera-dev/tokio-tar#4).
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.

1 participant