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

Cache scanner files if WAYLAND_SCANNER_USE_CACHE is 1 #10

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MatthiasKunnen
Copy link

Here I am again :)

I felt bad about hammering freedesktop's GitLab repo every time I tested generating the whole repo so I added this cache layer. It's a win-win for both freedesktop and the developer, we both get less data usage and we get faster generate time.

The system works by hashing the URL and saving it to $XDG_CACHE_DIR/go-wayland/scanner/$pkgName-$hash. Since tags are used, this cache should never go stale.

Comparison

To test this PR, PR #8 is required.

Any and all feedback welcome.

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