Performance#

Conda's performance can be affected by a variety of things. Unlike many package managers, Anaconda’s repositories generally don’t filter or remove old packages from the index. This allows old environments to be easily recreated. However, it does mean that the index metadata is always growing, and thus conda becomes slower as the number of packages increases.

How a package is installed#

While you are waiting, conda is doing a lot of work installing the packages. At any point along these steps, performance issues may arise.

Conda follows these steps when installing a package:

  1. Downloading and processing index metadata.

  2. Reducing the index.

  3. Expressing the package data and constraints as a SAT problem.

  4. Running the solver.

  5. Downloading and extracting packages.

  6. Verifying package contents.

  7. Linking packages from package cache into environments.

Therefore, if you're experiencing a slowdown, evaluate the following questions to identify potential causes:

  • Are you creating a new environment or installing into an existing one?

  • Does your environment have pip-installed dependencies in it?

  • What channels are you using?

  • What packages are you installing?

  • Is the channel metadata sane?

  • Are channels interacting in bad ways?

Improving conda performance#

This section goes over some of the best practices we recommend for addressing performance challenges.

  1. Make your package specifications more narrow.

    For example, instead of numpy, we recommend numpy=1.15 or, even better, numpy=1.15.4.

  2. Make sure you have libmamba set as your dependency solver. The conda libmamba solver was made the default solver in conda v23.9. It is a faster and more efficient solver than conda's classic solver, especially for large environments.

    To check which solver you have, run the following command:

    conda config --show solver
    

    If libmamba is set as your solver, you will see the following:

    solver: libmamba
    

    If you don't have libmamba set as your solver, follow these steps to enable it:

    1. Make sure conda-libmamba-solver is installed in your base environment:

      conda install --name base conda-libmamba-solver
      
    2. Set libmamba as your default solver:

      conda config --set solver libmamba
      

    Tip

    You can also use the libmamba solver temporarily when installing a package:

    conda install --solver=libmamba package_name
    
  1. Use strict channel priority.

    conda config --set channel_priority strict
    

    Strict channel priority makes it so that if a package exists on a channel, conda ignores all packages with the same name on lower priority channels, dramatically reducing package search space and the use of improperly constrained packages.

    Warning

    Setting strict channel priority might make environments unsatisfiable. Learn more about Strict channel priority.

    ../../_images/strict-disabled.png
    ../../_images/strict-enabled.png
  2. Enable sharded repodata. This splits your repodata into multiple small files and fetches only what is needed, which dramatically speeds up environment creation and updates. Learn more in CEP 16.

    Note

    This option is currently available for conda-forge and prefix.dev for all channels as of March 2026.

    Follow these steps to opt-in to sharded repodata:

    1. Update conda-libmamba-solver, if needed:

      conda install --name base "conda-libmamba-solver>=25.11.0"
      
    2. Set the use_sharded_repodata plugin to true:

      conda config --set plugins.use_sharded_repodata true