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

Add .mambarc to speed up index download #28

Closed
wants to merge 1 commit into from
Closed

Conversation

corneliusroemer
Copy link
Member

@corneliusroemer corneliusroemer commented May 15, 2023

Description of proposed changes

We download package indexes a lot. A few months ago, micromamba started supporting the download of zstd compressed files instead of gzip. Downloading an index can be sped up by ~10s.

Enabling is as simple as adding repodata_use_zst in the .mambarc (or adding an appropriate env variable). If zst file is not available, there's a fallback, so this shouldn't break anything.

In my tests, this seems to reduce build times by ~20%.

Compare:

If this works well, we could try to add this env variable to any workflow that sets up micromamba.

@tsibley
Copy link
Member

tsibley commented May 22, 2023

Can we just wait until this is the default? The option isn't even documented yet… and it seems like the intent of the option is to hide this experimental behaviour until it (soon?) becomes the default.

Can this go in the existing .condarc instead of a new .mambarc? I'd think it could.

In my tests, this seems to reduce build times by ~20%.

FWIW, I see ~11% total time improvement between the two linked CI runs, with individual "build and test" job improvement of ~16% for the Linux build and ~19% for the macOS build.

@victorlin
Copy link
Member

Closing since libmamba now uses ZST as of version 1.4.7.

@victorlin victorlin closed this Jul 8, 2024
@victorlin victorlin deleted the use-zstd branch July 8, 2024 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

3 participants