Speculative idea - Cache metadata for sdists? #7980
Labels
C: cache
Dealing with cache and files in it
state: needs discussion
This needs some more discussion
type: enhancement
Improvements to functionality
What's the problem this feature will solve?
In this discussion, @uranusjr said:
Describe the solution you'd like
Thinking about this, pip could cache metadata for sdists, much like the wheel cache. When we prepare a sdist to get metadata, we could save that metadata to a local cache, keyed by project name and version. Then, future runs could use the cache rather than downloading and building the sdist again.
Alternative Solutions
The wheel cache provides similar data, so we could check the wheel cache when looking for sdist metadata. However:
Additional context
As @uranusjr pointed out, the biggest benefits will be to platforms like musl which don't have wheels. However, a common musl platform is Docker alpine images, and as Docker containers are throwaway, a cache won't help much here. So we should make sure the benefits will be achieved in practice before investing time into this solution.
The text was updated successfully, but these errors were encountered: