-
Notifications
You must be signed in to change notification settings - Fork 20
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
Figure out if we can cache pkgs
folder
#11
Comments
micromamba now has a Could be useful for this |
Additionally it would be really cool to have automatic |
This is how the cache stuff from @actions can be used from JS: https://github.com/actions/toolkit/tree/main/packages/cache#usage |
In my experience the caching and restoring for large environments was slower than building the environment, i suspected this was due to compression and/or decompression. Are the unzipped downloads stored somewhere? |
In the We could remove tarballs with |
In vaexio/vaex#1648
Taking a while (4 minutes 25 seconds) |
yeah that's a bit different from my suggestion but may also work well ... |
Comparing zipping the env, vs the pkgs directory:
On my local computer it's 5x faster, and somewhat smaller. |
Also wondering how it should play along with an explicit file, because I'm now in a situation where i put in a dummy environment.yml, and then depending if I have a cache hit (so pkgs and the explicit file is given back to me) i will install from the environment file or from the explicit file. |
I think we should have an The lock file should have an expiry date -- so if we hit the cache but it's older than e.g. 7 days we recreate the lock file (this value should be configurable). |
I've spent some time optimizing env/pkg cache for some repos recently. Observations:
Nowadays the cache action uses zstd so decompression should be really fast. |
By the way we could also cache the micromamba download, although it that would be more of a traffic reduction technique than a speedup because the download is really fast. Update: On this repo's CI, the last Windows download took 10s and Ubuntu 1s. |
Fixed with #38 |
Github Actions supports caching (up to 5 Gb).
We could cache pkgs so that they don't have to be re-downloaded and unpacked every time. That could give another decent speed boost.
The text was updated successfully, but these errors were encountered: