Skip to content

Memoize filesystem operations during unpack#5

Merged
charliermarsh merged 1 commit intomainfrom
charlie/memo
Feb 3, 2025
Merged

Memoize filesystem operations during unpack#5
charliermarsh merged 1 commit intomainfrom
charlie/memo

Conversation

@charliermarsh
Copy link
Copy Markdown
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