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 more things in package management use-cases #11003

Open
ElectreAAS opened this issue Oct 8, 2024 · 2 comments
Open

Cache more things in package management use-cases #11003

ElectreAAS opened this issue Oct 8, 2024 · 2 comments

Comments

@ElectreAAS
Copy link
Collaborator

We recently enabled the cache by default, although with a relatively small set of rules that can actually be cached. We'd like to cache as much as possible, especially regarding costly downloads and compilation of dependencies.

A few options have been discussed already (may or may not be mutually exclusive):

  • Track down all instances where we can set the can_go_in_shared_cache to true
  • Assuming we are building a package dependency, and that package gets built with a child dune: pass arguments to that child dune to cache everything
  • Would work even without a child dune: cache everything when we come back to the parent dune
@ElectreAAS
Copy link
Collaborator Author

ElectreAAS commented Oct 8, 2024

@rgrinberg
Copy link
Member

Yeah, that sounds fine. You can experiment with always caching the OCaml rules as well. Those are defined within dune itself, so they should be pretty safe to cache.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants