Skip to content

Conversation

sentrivana
Copy link
Contributor

@sentrivana sentrivana commented Sep 22, 2025

Description

We're fetching the same release data from PyPI everytime toxgen is run. Cache it instead to avoid unnecessary network requests.

This makes toxgen about twice as fast.

I'm sorting the cache file to hopefully avoid merge conflicts (at least it should make them less likely compared to if we'd only append to the file). Let's see how this works, if the cache makes it harder to merge stuff because of merge conflicts, we can get rid of it. Ease of use is more important than runtime.

Issues

Closes #4817

Reminders

Base automatically changed from ivana/toxgen/cleanup-old-stuff to master September 22, 2025 10:13
@sentrivana sentrivana marked this pull request as ready for review September 23, 2025 13:45
@sentrivana sentrivana requested a review from a team as a code owner September 23, 2025 13:45
cursor[bot]

This comment was marked as outdated.

@sentrivana sentrivana merged commit 13a8ae1 into master Sep 24, 2025
114 checks passed
@sentrivana sentrivana deleted the ivana/toxgen/cache branch September 24, 2025 08:20
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.

Cache package versions in toxgen
2 participants